public class GridDhtPartitionMap2 extends Object implements Comparable<GridDhtPartitionMap2>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,GridDhtPartitionState> |
map |
protected UUID |
nodeId
Node ID.
|
static IgniteProductVersion |
SINCE
Used since.
|
protected AffinityTopologyVersion |
top
Topology version.
|
protected long |
updateSeq
Update sequence number.
|
| Constructor and Description |
|---|
GridDhtPartitionMap2()
Empty constructor required for
Externalizable. |
GridDhtPartitionMap2(UUID nodeId,
long updateSeq) |
GridDhtPartitionMap2(UUID nodeId,
long updateSeq,
AffinityTopologyVersion top,
Map<Integer,GridDhtPartitionState> m,
boolean onlyActive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionMap2 o) |
boolean |
containsKey(Integer part) |
Set<Map.Entry<Integer,GridDhtPartitionState>> |
entrySet() |
boolean |
equals(Object o) |
GridDhtPartitionState |
get(Integer part) |
int |
hashCode() |
boolean |
hasMovingPartitions() |
Set<Integer> |
keySet() |
Map<Integer,GridDhtPartitionState> |
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) |
public static final IgniteProductVersion SINCE
protected UUID nodeId
protected long updateSeq
protected AffinityTopologyVersion top
protected Map<Integer,GridDhtPartitionState> map
public GridDhtPartitionMap2(UUID nodeId, long updateSeq)
nodeId - Node ID.updateSeq - Update sequence number.public GridDhtPartitionMap2(UUID nodeId, long updateSeq, AffinityTopologyVersion top, Map<Integer,GridDhtPartitionState> m, boolean onlyActive)
nodeId - Node ID.updateSeq - Update sequence number.m - Map to copy.onlyActive - If true, then only active states will be included.public GridDhtPartitionMap2()
Externalizable.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 Map<Integer,GridDhtPartitionState> 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(GridDhtPartitionMap2 o)
compareTo in interface Comparable<GridDhtPartitionMap2>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 Fabric : ver. 1.7.0 Release Date : August 1 2016