public class GridDhtPartitionMap extends Object implements Comparable<GridDhtPartitionMap>, Externalizable
| Constructor and Description |
|---|
GridDhtPartitionMap()
Empty constructor required for
Externalizable. |
GridDhtPartitionMap(UUID nodeId,
long updateSeq) |
GridDhtPartitionMap(UUID nodeId,
long updateSeq,
Map<Integer,GridDhtPartitionState> m,
boolean onlyActive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionMap 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() |
String |
toString() |
long |
updateSequence() |
long |
updateSequence(long updateSeq) |
void |
writeExternal(ObjectOutput out) |
public GridDhtPartitionMap(UUID nodeId, long updateSeq)
nodeId - Node ID.updateSeq - Update sequence number.public GridDhtPartitionMap(UUID nodeId, long updateSeq, 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 GridDhtPartitionMap()
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)
updateSeq - New update sequence value.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 Fabric : ver. 1.4.0 Release Date : September 24 2015