Package com.gigaspaces.internal.cluster
Class SpaceClusterInfo
java.lang.Object
com.gigaspaces.internal.cluster.SpaceClusterInfo
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- Since:
- 9.0.0
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequired for ExternalizableSpaceClusterInfo(SpaceClusterInfo clusterInfo) SpaceClusterInfo(JSpaceAttributes spaceAttributes, String defaultMemberName) -
Method Summary
Modifier and TypeMethodDescriptioncloneAndUpdate(ClusterTopology newChunksMap) <T> TgetCustomComponent(String key) intintintgetPartitionId(int routingValue) intgetPartitionId(long routingValue) getPartitionMembersNames(int partitionId) intgetPartitionOfMember(String memberName) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidsetCustomComponent(SpaceCustomComponent component) voidsetNumOfPartitions(int numOfPartitions) voidsetTopology(ClusterTopology topology) 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
-
Constructor Details
-
SpaceClusterInfo
public SpaceClusterInfo()Required for Externalizable -
SpaceClusterInfo
-
SpaceClusterInfo
-
-
Method Details
-
isClustered
public boolean isClustered() -
getMembersNames
-
isBroadcastDisabled
public boolean isBroadcastDisabled() -
cloneAndUpdate
-
isPartitioned
public boolean isPartitioned()- Returns:
- Gets whether the cluster is partitioned. True for "partitioned_sync2backup" topologies.
-
getNumberOfPartitions
public int getNumberOfPartitions()- Returns:
- Gets the number of partitions in a partitioned topology, otherwise returns 0.
-
getTopology
-
getNumberOfBackups
public int getNumberOfBackups() -
getLoadBalancerType
-
getPartitionMembersNames
- Returns:
- Gets a group members list for the provided partition id - relevant only for partitioned clusters.
-
getPartitionOfMember
-
isReplicated
public boolean isReplicated() -
isActiveActive
public boolean isActiveActive() -
getCustomComponent
-
getCustomComponents
-
setCustomComponent
-
setNumOfPartitions
public void setNumOfPartitions(int numOfPartitions) -
isSyncReplicationEnabled
public boolean isSyncReplicationEnabled() -
isMirrorServiceEnabled
public boolean isMirrorServiceEnabled() -
getMirrorServiceConfig
-
hasReplicationTargets
public boolean hasReplicationTargets() -
isPrimaryElectionAvailable
public boolean isPrimaryElectionAvailable() -
getClusterName
-
getClusterSchema
-
setTopology
-
toString
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
isChunksRouting
public boolean isChunksRouting() -
getPartitionId
public int getPartitionId(int routingValue) -
getPartitionId
public int getPartitionId(long routingValue)
-