public class HistoryAffinityAssignmentImpl extends Object implements HistoryAffinityAssignment
DFLT_AFFINITY_BACKUPS_THRESHOLD, IGNITE_AFFINITY_BACKUPS_THRESHOLD, IGNITE_DISABLE_AFFINITY_MEMORY_OPTIMIZATION| Constructor and Description |
|---|
HistoryAffinityAssignmentImpl(AffinityAssignment assign,
int backups) |
| Modifier and Type | Method and Description |
|---|---|
List<List<ClusterNode>> |
assignment() |
Set<Integer> |
backupPartitions(UUID nodeId)
Get backup partitions for specified node ID.
|
boolean |
equals(Object o) |
List<ClusterNode> |
get(int part)
Get affinity nodes for partition.
|
Collection<UUID> |
getIds(int part)
Get affinity node IDs for partition.
|
int |
hashCode() |
List<List<ClusterNode>> |
idealAssignment() |
Set<ClusterNode> |
nodes() |
HistoryAffinityAssignment |
origin()
In case this instance is lightweight wrapper of another instance, this method should return reference
to an original one.
|
Set<Integer> |
partitionPrimariesDifferentToIdeal() |
Set<ClusterNode> |
primaryPartitionNodes() |
Set<Integer> |
primaryPartitions(UUID nodeId)
Get primary partitions for specified node ID.
|
boolean |
requiresHistoryCleanup()
Should return true if instance is "heavy" and should be taken into account during history size management.
|
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitassignments2idspublic HistoryAffinityAssignmentImpl(AffinityAssignment assign, int backups)
assign - Assignment.backups - Backups.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 Collection<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.public Set<Integer> partitionPrimariesDifferentToIdeal()
partitionPrimariesDifferentToIdeal in interface AffinityAssignmentpublic boolean requiresHistoryCleanup()
requiresHistoryCleanup in interface HistoryAffinityAssignmenttrue if adding this instance to history should trigger size check and possible cleanup.public HistoryAffinityAssignment origin()
this reference.origin in interface HistoryAffinityAssignmentthis if not applicable.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021