public class ClusterTopologyState extends Object implements SmartExternalizable
Constructor and Description |
---|
ClusterTopologyState() |
ClusterTopologyState(ClusterTopologyState other) |
ClusterTopologyState(int generation,
int numOfPartitions,
int maxTopologyGeneration) |
Modifier and Type | Method and Description |
---|---|
void |
addGeneration(int generation,
int numOfPartitions,
int basePartitionToUpdate) |
void |
deletePartitionGeneration(int partitionId) |
int |
getCurrentGeneration() |
int |
getGenerationForPartition(int partitionId) |
int |
getMaxTopologyGeneration() |
void |
readExternal(ObjectInput in) |
void |
setMaxTopologyGeneration(int maxTopologyGeneration) |
String |
toString() |
void |
updateGeneration(int currentGeneration) |
void |
updatePartitionsGeneration(int from,
int to,
int generation) |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
enabledSmartExternalizableWithReference
public ClusterTopologyState()
public ClusterTopologyState(int generation, int numOfPartitions, int maxTopologyGeneration)
public ClusterTopologyState(ClusterTopologyState other)
public void addGeneration(int generation, int numOfPartitions, int basePartitionToUpdate)
public void updatePartitionsGeneration(int from, int to, int generation)
public int getCurrentGeneration()
public int getGenerationForPartition(int partitionId)
public void deletePartitionGeneration(int partitionId)
public void updateGeneration(int currentGeneration)
public void setMaxTopologyGeneration(int maxTopologyGeneration)
public int getMaxTopologyGeneration()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © GigaSpaces.