Class ClusterTopologyState

java.lang.Object
com.gigaspaces.internal.cluster.ClusterTopologyState
All Implemented Interfaces:
SmartExternalizable, Externalizable, Serializable

public class ClusterTopologyState extends Object implements SmartExternalizable
See Also:
  • Constructor Details

    • ClusterTopologyState

      public ClusterTopologyState()
    • ClusterTopologyState

      public ClusterTopologyState(int generation, int numOfPartitions, int maxTopologyGeneration)
    • ClusterTopologyState

      public ClusterTopologyState(ClusterTopologyState other)
  • 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

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException
    • toString

      public String toString()
      Overrides:
      toString in class Object