public class GridDhtPartitionFullMap extends HashMap<UUID,GridDhtPartitionMap> implements Comparable<GridDhtPartitionFullMap>, Externalizable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GridDhtPartitionFullMap()
Empty constructor required for
Externalizable. |
GridDhtPartitionFullMap(GridDhtPartitionFullMap m,
long updateSeq) |
GridDhtPartitionFullMap(UUID nodeId,
long nodeOrder,
long updateSeq) |
GridDhtPartitionFullMap(UUID nodeId,
long nodeOrder,
long updateSeq,
Map<UUID,GridDhtPartitionMap> m,
boolean onlyActive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionFullMap o) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
map2string() |
void |
newUpdateSequence(long updateSeq) |
UUID |
nodeId() |
long |
nodeOrder() |
boolean |
partitionStateEquals(GridDhtPartitionFullMap fullMap) |
void |
readExternal(ObjectInput in) |
String |
toFullString() |
String |
toString() |
long |
updateSequence() |
long |
updateSequence(long updateSeq) |
boolean |
valid() |
void |
writeExternal(ObjectOutput out) |
public GridDhtPartitionFullMap(UUID nodeId, long nodeOrder, long updateSeq)
nodeId - Node ID.nodeOrder - Node order.updateSeq - Update sequence number.public GridDhtPartitionFullMap(UUID nodeId, long nodeOrder, long updateSeq, Map<UUID,GridDhtPartitionMap> m, boolean onlyActive)
nodeId - Node ID.nodeOrder - Node order.updateSeq - Update sequence number.m - Map to copy.onlyActive - If true, then only active partitions will be included.public GridDhtPartitionFullMap(GridDhtPartitionFullMap m, long updateSeq)
m - Map to copy.updateSeq - Update sequence.public GridDhtPartitionFullMap()
Externalizable.public boolean valid()
True if properly initialized.public UUID nodeId()
public long nodeOrder()
public long updateSequence()
public boolean partitionStateEquals(GridDhtPartitionFullMap fullMap)
fullMap - Map.True if this map and given map contain the same data.public void newUpdateSequence(long updateSeq)
updateSeq - New update sequence value.public long updateSequence(long updateSeq)
updateSeq - New update sequence value.public int compareTo(GridDhtPartitionFullMap o)
compareTo in interface Comparable<GridDhtPartitionFullMap>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<UUID,GridDhtPartitionMap>equals in class AbstractMap<UUID,GridDhtPartitionMap>public int hashCode()
hashCode in interface Map<UUID,GridDhtPartitionMap>hashCode in class AbstractMap<UUID,GridDhtPartitionMap>public String map2string()
public String toFullString()
public String toString()
toString in class AbstractMap<UUID,GridDhtPartitionMap>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017