public class GridDhtPartitionMap extends HashMap<Integer,GridDhtPartitionState> implements Comparable<GridDhtPartitionMap>, Externalizable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 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 |
equals(Object o) |
int |
hashCode() |
UUID |
nodeId() |
void |
readExternal(ObjectInput in) |
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 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 boolean equals(Object o)
equals in interface Map<Integer,GridDhtPartitionState>equals in class AbstractMap<Integer,GridDhtPartitionState>public int hashCode()
hashCode in interface Map<Integer,GridDhtPartitionState>hashCode in class AbstractMap<Integer,GridDhtPartitionState>public String toFullString()
public String toString()
toString in class AbstractMap<Integer,GridDhtPartitionState>Copyright © 2014. All rights reserved.