Package com.gigaspaces.internal.cluster
Class ClusterTopologyState
java.lang.Object
com.gigaspaces.internal.cluster.ClusterTopologyState
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClusterTopologyState(int generation, int numOfPartitions, int maxTopologyGeneration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeneration(int generation, int numOfPartitions, int basePartitionToUpdate) voiddeletePartitionGeneration(int partitionId) intintgetGenerationForPartition(int partitionId) intvoidvoidsetMaxTopologyGeneration(int maxTopologyGeneration) toString()voidupdateGeneration(int currentGeneration) voidupdatePartitionsGeneration(int from, int to, int generation) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
ClusterTopologyState
public ClusterTopologyState() -
ClusterTopologyState
public ClusterTopologyState(int generation, int numOfPartitions, int maxTopologyGeneration) -
ClusterTopologyState
-
-
Method Details
-
addGeneration
public void addGeneration(int generation, int numOfPartitions, int basePartitionToUpdate) -
updatePartitionsGeneration
public void updatePartitionsGeneration(int from, int to, int generation) -
getCurrentGeneration
public int getCurrentGeneration() -
getGenerationForPartition
public int getGenerationForPartition(int partitionId) -
deletePartitionGeneration
public void deletePartitionGeneration(int partitionId) -
updateGeneration
public void updateGeneration(int currentGeneration) -
setMaxTopologyGeneration
public void setMaxTopologyGeneration(int maxTopologyGeneration) -
getMaxTopologyGeneration
public int getMaxTopologyGeneration() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-