Package com.gigaspaces.internal.cluster
Class ClusterTopology
java.lang.Object
com.gigaspaces.internal.cluster.ClusterTopology
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanequivalent(ClusterTopology other) intintintgetPartitionChunks(int partition) intgetPartitionId(int routingValue) intgetPartitionId(long routingValue) voidsetGeneration(int generation) setNumOfBackups(int numOfBackups) setNumOfInstances(int numOfInstances) setPartitionsToChunksMap(Map<Integer, Set<Integer>> partitionsToChunksMap) toString()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
-
Field Details
-
CHUNKS_COUNT
public static final int CHUNKS_COUNT
-
-
Constructor Details
-
ClusterTopology
public ClusterTopology() -
ClusterTopology
public ClusterTopology(int numOfPartitions) used from unit tests- Parameters:
numOfPartitions-
-
-
Method Details
-
setGeneration
-
setSchema
-
setNumOfInstances
-
setNumOfBackups
-
setPartitionsToChunksMap
-
getGeneration
public int getGeneration() -
getNumberOfInstances
public int getNumberOfInstances() -
getNumberOfBackups
public int getNumberOfBackups() -
getSchema
-
getPartitionId
public int getPartitionId(int routingValue) -
getPartitionId
public int getPartitionId(long routingValue) -
toString
-
getPartitionsToChunksMap
-
getPartitionChunks
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
copy
-
equivalent
-