public class GridDhtPartitionMap extends Object implements Comparable<GridDhtPartitionMap>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected GridPartitionStateMap |
map |
protected UUID |
nodeId
Node ID.
|
protected AffinityTopologyVersion |
top
Topology version.
|
protected long |
updateSeq
Update sequence number.
|
| Constructor and Description |
|---|
GridDhtPartitionMap()
Empty constructor required for
Externalizable. |
GridDhtPartitionMap(UUID nodeId,
long updateSeq,
AffinityTopologyVersion top,
GridPartitionStateMap m,
boolean onlyActive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionMap o) |
boolean |
containsKey(Integer part) |
GridDhtPartitionMap |
emptyCopy() |
Set<Map.Entry<Integer,GridDhtPartitionState>> |
entrySet() |
boolean |
equals(Object o) |
GridDhtPartitionState |
get(Integer part) |
int |
hashCode() |
boolean |
hasMovingPartitions() |
Set<Integer> |
keySet() |
GridPartitionStateMap |
map() |
UUID |
nodeId() |
void |
put(Integer part,
GridDhtPartitionState state) |
void |
readExternal(ObjectInput in) |
int |
size() |
String |
toFullString() |
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
long |
updateSequence() |
long |
updateSequence(long updateSeq,
AffinityTopologyVersion topVer) |
void |
writeExternal(ObjectOutput out) |
protected UUID nodeId
protected long updateSeq
protected AffinityTopologyVersion top
protected GridPartitionStateMap map
public GridDhtPartitionMap()
Externalizable.public GridDhtPartitionMap(UUID nodeId, long updateSeq, AffinityTopologyVersion top, GridPartitionStateMap m, boolean onlyActive)
nodeId - Node ID.updateSeq - Update sequence number.top - Topology version.m - Map to copy.onlyActive - If true, then only active states will be included.public GridDhtPartitionMap emptyCopy()
public void put(Integer part, GridDhtPartitionState state)
part - Partition.state - Partition state.public boolean hasMovingPartitions()
true If partition map contains moving partitions.public GridDhtPartitionState get(Integer part)
part - Partition.public boolean containsKey(Integer part)
part - Partition.True if contains given partition.public Set<Map.Entry<Integer,GridDhtPartitionState>> entrySet()
public int size()
public GridPartitionStateMap map()
public UUID nodeId()
public long updateSequence()
public long updateSequence(long updateSeq,
AffinityTopologyVersion topVer)
updateSeq - New update sequence value.topVer - Current topology version.public AffinityTopologyVersion topologyVersion()
public int compareTo(GridDhtPartitionMap o)
compareTo in interface Comparable<GridDhtPartitionMap>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic String toFullString()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020