public interface AffinityNodeHashResolver extends Serializable
Node IDs constantly change when nodes get restarted, which causes affinity mapping to change between restarts, and hence causing redundant repartitioning. Providing an alternate node hash value, which survives node restarts, will help to map keys to the same nodes whenever possible.
Note that on case clients exist they will query this object from the server and use it for affinity calculation. Therefore you must ensure that server and clients can marshal and unmarshal this object in portable format, i.e. all parties have object class(es) configured as portable.
Modifier and Type | Method and Description |
---|---|
Object |
resolve(ClusterNode node)
Resolve alternate hash value for the given Grid node.
|
Object resolve(ClusterNode node)
node
- Grid node.
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015