public class GridAffinityAssignment extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
List<List<ClusterNode>> |
assignment() |
Set<Integer> |
backupPartitions(UUID nodeId)
Get backup partitions for specified node ID.
|
boolean |
clientEventChange() |
boolean |
equals(Object o) |
List<ClusterNode> |
get(int part)
Get affinity nodes for partition.
|
HashSet<UUID> |
getIds(int part)
Get affinity node IDs for partition.
|
int |
hashCode() |
List<List<ClusterNode>> |
idealAssignment() |
Set<ClusterNode> |
primaryPartitionNodes() |
Set<Integer> |
primaryPartitions(UUID nodeId)
Get primary partitions for specified node ID.
|
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
public boolean clientEventChange()
True if related discovery event did not not cause affinity assignment change and
this assignment is just reference to the previous one.public List<List<ClusterNode>> idealAssignment()
public List<List<ClusterNode>> assignment()
public AffinityTopologyVersion topologyVersion()
public List<ClusterNode> get(int part)
part - Partition.public HashSet<UUID> getIds(int part)
part - Partition.public Set<ClusterNode> primaryPartitionNodes()
public Set<Integer> primaryPartitions(UUID nodeId)
nodeId - Node ID to get primary partitions for.public Set<Integer> backupPartitions(UUID nodeId)
nodeId - Node ID to get backup partitions for.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016