public class HistoryAffinityAssignmentShallowCopy extends Object implements HistoryAffinityAssignment
HistoryAffinityAssignment.DFLT_AFFINITY_BACKUPS_THRESHOLD, IGNITE_AFFINITY_BACKUPS_THRESHOLD, IGNITE_DISABLE_AFFINITY_MEMORY_OPTIMIZATION| Constructor and Description |
|---|
HistoryAffinityAssignmentShallowCopy(HistoryAffinityAssignment histAssignment,
AffinityTopologyVersion topVer) |
| Modifier and Type | Method and Description |
|---|---|
List<List<ClusterNode>> |
assignment() |
Set<Integer> |
backupPartitions(UUID nodeId)
Get backup partitions for specified node ID.
|
List<ClusterNode> |
get(int part)
Get affinity nodes for partition.
|
Collection<UUID> |
getIds(int part)
Get affinity node IDs for partition.
|
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassignments2idspublic HistoryAffinityAssignmentShallowCopy(HistoryAffinityAssignment histAssignment, AffinityTopologyVersion topVer)
histAssignment - History assignment.topVer - Topology version.public boolean requiresHistoryCleanup()
requiresHistoryCleanup in interface HistoryAffinityAssignmenttrue if adding this instance to history should trigger size check and possible cleanup.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 HistoryAffinityAssignment origin()
this reference.origin in interface HistoryAffinityAssignmentthis if not applicable.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021