Class GridDhtPreloaderAssignments
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<ClusterNode,GridDhtPartitionDemandMessage>
-
- org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPreloaderAssignments
-
- All Implemented Interfaces:
Serializable,ConcurrentMap<ClusterNode,GridDhtPartitionDemandMessage>,Map<ClusterNode,GridDhtPartitionDemandMessage>
public class GridDhtPreloaderAssignments extends ConcurrentHashMap<ClusterNode,GridDhtPartitionDemandMessage>
Partition to node assignments.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description GridDhtPreloaderAssignments(GridDhtPartitionExchangeId exchangeId, AffinityTopologyVersion topVer, boolean affinityReassign)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaffinityReassign()booleancancelled()voidcancelled(boolean cancelled)voidretainMoving(GridDhtPartitionTopology top)Retains only moving partitions for the current topology.ClusterNodesupplier(int part)Gets a supplier node for a partition.AffinityTopologyVersiontopologyVersion()StringtoString()-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, values
-
Methods inherited from class java.util.AbstractMap
clone
-
-
-
-
Constructor Detail
-
GridDhtPreloaderAssignments
public GridDhtPreloaderAssignments(GridDhtPartitionExchangeId exchangeId, AffinityTopologyVersion topVer, boolean affinityReassign)
- Parameters:
exchangeId- Exchange ID.topVer- Last join order.
-
-
Method Detail
-
affinityReassign
public boolean affinityReassign()
- Returns:
- True if partitions were reassigned.
-
cancelled
public boolean cancelled()
- Returns:
Trueif assignments creation was cancelled.
-
cancelled
public void cancelled(boolean cancelled)
- Parameters:
cancelled-Trueif assignments creation was cancelled.
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
- Returns:
- Topology version based on last
GridDhtPartitionTopologyImpl.readyTopVer.
-
toString
public String toString()
- Overrides:
toStringin classConcurrentHashMap<ClusterNode,GridDhtPartitionDemandMessage>
-
retainMoving
public void retainMoving(GridDhtPartitionTopology top)
Retains only moving partitions for the current topology.- Parameters:
top- Topology.
-
supplier
public ClusterNode supplier(int part)
Gets a supplier node for a partition.- Parameters:
part- Partition.- Returns:
- Supplier node for a partition or null if not found.
-
-