Class SpaceClusterInfo

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

public class SpaceClusterInfo extends Object implements SmartExternalizable
Since:
9.0.0
Author:
Niv Ingberg
See Also:
  • Constructor Details

    • SpaceClusterInfo

      public SpaceClusterInfo()
      Required for Externalizable
    • SpaceClusterInfo

      public SpaceClusterInfo(JSpaceAttributes spaceAttributes, String defaultMemberName)
    • SpaceClusterInfo

      public SpaceClusterInfo(SpaceClusterInfo clusterInfo)
  • Method Details

    • isClustered

      public boolean isClustered()
    • getMembersNames

      public List<String> getMembersNames()
    • isBroadcastDisabled

      public boolean isBroadcastDisabled()
    • cloneAndUpdate

      public SpaceClusterInfo cloneAndUpdate(ClusterTopology newChunksMap)
    • 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

      public ClusterTopology getTopology()
    • getNumberOfBackups

      public int getNumberOfBackups()
    • getLoadBalancerType

      public SpaceProxyLoadBalancerType getLoadBalancerType()
    • getPartitionMembersNames

      public List<String> getPartitionMembersNames(int partitionId)
      Returns:
      Gets a group members list for the provided partition id - relevant only for partitioned clusters.
    • getPartitionOfMember

      public int getPartitionOfMember(String memberName)
    • isReplicated

      public boolean isReplicated()
    • isActiveActive

      public boolean isActiveActive()
    • getCustomComponent

      public <T> T getCustomComponent(String key)
    • getCustomComponents

      public Map<String,SpaceCustomComponent> getCustomComponents()
    • setCustomComponent

      public void setCustomComponent(SpaceCustomComponent component)
    • setNumOfPartitions

      public void setNumOfPartitions(int numOfPartitions)
    • isSyncReplicationEnabled

      public boolean isSyncReplicationEnabled()
    • isMirrorServiceEnabled

      public boolean isMirrorServiceEnabled()
    • getMirrorServiceConfig

      public MirrorServiceConfig getMirrorServiceConfig()
    • hasReplicationTargets

      public boolean hasReplicationTargets()
    • isPrimaryElectionAvailable

      public boolean isPrimaryElectionAvailable()
    • getClusterName

      public String getClusterName()
    • getClusterSchema

      public String getClusterSchema()
    • setTopology

      public void setTopology(ClusterTopology topology)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • isChunksRouting

      public boolean isChunksRouting()
    • getPartitionId

      public int getPartitionId(int routingValue)
    • getPartitionId

      public int getPartitionId(long routingValue)