public class GridAffinityAssignment extends Object implements AffinityAssignment, 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> |
nodes() |
Set<ClusterNode> |
primaryPartitionNodes() |
Set<Integer> |
primaryPartitions(UUID nodeId)
Get primary partitions for specified node ID.
|
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
public boolean clientEventChange()
clientEventChange in interface AffinityAssignmentTrue 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()
idealAssignment in interface AffinityAssignmentpublic List<List<ClusterNode>> assignment()
assignment in interface AffinityAssignmentpublic AffinityTopologyVersion topologyVersion()
topologyVersion in interface AffinityAssignmentpublic List<ClusterNode> get(int part)
get in interface AffinityAssignmentpart - Partition.public HashSet<UUID> getIds(int part)
getIds in interface AffinityAssignmentpart - Partition.public Set<ClusterNode> nodes()
nodes in interface AffinityAssignmentpublic Set<ClusterNode> primaryPartitionNodes()
primaryPartitionNodes in interface AffinityAssignmentpublic Set<Integer> primaryPartitions(UUID nodeId)
primaryPartitions in interface AffinityAssignmentnodeId - Node ID to get primary partitions for.public Set<Integer> backupPartitions(UUID nodeId)
backupPartitions in interface AffinityAssignmentnodeId - Node ID to get backup partitions for.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018