Interface HistoryAffinityAssignment
-
- All Superinterfaces:
AffinityAssignment
- All Known Implementing Classes:
HistoryAffinityAssignmentImpl,HistoryAffinityAssignmentShallowCopy
public interface HistoryAffinityAssignment extends AffinityAssignment
Interface for historical calculated affinity assignment.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.processors.affinity.AffinityAssignment
DFLT_AFFINITY_BACKUPS_THRESHOLD, IGNITE_AFFINITY_BACKUPS_THRESHOLD, IGNITE_DISABLE_AFFINITY_MEMORY_OPTIMIZATION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisFullSizeInstance()Should return true if instance is "heavy" and should be taken into account during history size management.HistoryAffinityAssignmentorigin()In case this instance is lightweight wrapper of another instance, this method should return reference to an original one.-
Methods inherited from interface org.apache.ignite.internal.processors.affinity.AffinityAssignment
assignment, assignments2ids, backupPartitions, get, getIds, idealAssignment, nodes, partitionPrimariesDifferentToIdeal, primaryPartitionNodes, primaryPartitions, topologyVersion
-
-
-
-
Method Detail
-
isFullSizeInstance
boolean isFullSizeInstance()
Should return true if instance is "heavy" and should be taken into account during history size management.- Returns:
trueif adding this instance to history should trigger size check and possible cleanup.
-
origin
HistoryAffinityAssignment origin()
In case this instance is lightweight wrapper of another instance, this method should return reference to an original one. Otherwise, it should returnthisreference.- Returns:
- Original instance of
thisif not applicable.
-
-