GigaSpaces XAP 9.7.2 API

com.j_spaces.core.cluster
Class ClusterPolicy

java.lang.Object
  extended by com.j_spaces.core.cluster.ClusterPolicy
All Implemented Interfaces:
Externalizable, Serializable

public class ClusterPolicy
extends Object
implements Externalizable

Holds the cluster policy data. This API will not be available in future versions

See Also:
Serialized Form

Nested Class Summary
static class ClusterPolicy.CacheLoaderConfig
          cache-loader configuration
 
Field Summary
 List<String> m_AllClusterMemberList
          Cluster members' names.
 ClusterPolicy.CacheLoaderConfig m_CacheLoaderConfig
          cache-loader configuration
 String m_ClusterGroupMember
          Cluster group member name.
 HashMap<String,Properties> m_ClusterMembersProperties
          Holds for each member its properties.
 String m_ClusterName
          Cluster name.
 String m_ClusterSchemaName
          Cluster schema name.
 com.j_spaces.core.JSpaceAttributes m_DCacheAttributes
          Deprecated. No longer in the cluster policy. Included in a space configuration. In order to get the attributes use: ((JSpaceAttributes)JProperties.getSpaceProperties(getServiceName())).getDCacheProperties().
 String m_DCacheConfigName
          Deprecated. No longer in the cluster policy. Included in a space configuration. In order to get the configuration name use: ((JSpaceAttributes)JProperties.getSpaceProperties(getServiceName())).getDCacheConfigName().
 com.j_spaces.core.cluster.FailOverPolicy m_FailOverPolicy
          Fail over policy.
 String m_jmsConfigName
          Deprecated. No longer in the cluster policy.
 Properties m_jmsProperties
          Deprecated. No longer in the cluster policy.
 com.gigaspaces.cluster.loadbalance.LoadBalancingPolicy m_LoadBalancingPolicy
          Load balancing policy.
 boolean m_NotifyRecovery
          recovery in load balancing group
 boolean m_Replicated
          Is member of replication.
 List<ReplicationPolicy> m_ReplicationGroups
          Replication groups list.
 ReplicationPolicy m_ReplicationPolicy
          Replication policy.
 
Constructor Summary
ClusterPolicy()
           
 
Method Summary
 ReplicationPolicy getReplicationPolicy()
           
 boolean isActiveActive()
           
 boolean isFailbackEnabled()
           
 boolean isPersistentStartupEnabled()
           
 boolean isPrimaryElectionAvailable()
           
 boolean isReplicated()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_ClusterSchemaName

public String m_ClusterSchemaName
Cluster schema name.


m_ClusterName

public String m_ClusterName
Cluster name.


m_NotifyRecovery

public boolean m_NotifyRecovery
recovery in load balancing group


m_CacheLoaderConfig

public ClusterPolicy.CacheLoaderConfig m_CacheLoaderConfig
cache-loader configuration


m_ClusterGroupMember

public String m_ClusterGroupMember
Cluster group member name.


m_Replicated

public boolean m_Replicated
Is member of replication.


m_ReplicationPolicy

public ReplicationPolicy m_ReplicationPolicy
Replication policy.


m_FailOverPolicy

public com.j_spaces.core.cluster.FailOverPolicy m_FailOverPolicy
Fail over policy.


m_LoadBalancingPolicy

public com.gigaspaces.cluster.loadbalance.LoadBalancingPolicy m_LoadBalancingPolicy
Load balancing policy.


m_ReplicationGroups

public List<ReplicationPolicy> m_ReplicationGroups
Replication groups list.


m_AllClusterMemberList

public List<String> m_AllClusterMemberList
Cluster members' names.


m_ClusterMembersProperties

public HashMap<String,Properties> m_ClusterMembersProperties
Holds for each member its properties.


m_DCacheAttributes

@Deprecated
public com.j_spaces.core.JSpaceAttributes m_DCacheAttributes
Deprecated. No longer in the cluster policy. Included in a space configuration. In order to get the attributes use: ((JSpaceAttributes)JProperties.getSpaceProperties(getServiceName())).getDCacheProperties().
DCache configuration.


m_DCacheConfigName

@Deprecated
public String m_DCacheConfigName
Deprecated. No longer in the cluster policy. Included in a space configuration. In order to get the configuration name use: ((JSpaceAttributes)JProperties.getSpaceProperties(getServiceName())).getDCacheConfigName().
DCache configuration name.


m_jmsProperties

@Deprecated
public Properties m_jmsProperties
Deprecated. No longer in the cluster policy.
JMS properties.


m_jmsConfigName

@Deprecated
public String m_jmsConfigName
Deprecated. No longer in the cluster policy.
JMS configuration name.

Constructor Detail

ClusterPolicy

public ClusterPolicy()
Method Detail

isPersistentStartupEnabled

public boolean isPersistentStartupEnabled()
Returns:
true if persistent startup manager is enabled in configuration

isFailbackEnabled

public boolean isFailbackEnabled()
Returns:
true if true; false otherwise.

isPrimaryElectionAvailable

public boolean isPrimaryElectionAvailable()
Returns:
true if primary election is used; false if disabled.

isActiveActive

public boolean isActiveActive()

isReplicated

public boolean isReplicated()

toString

public String toString()
Overrides:
toString in class Object

getReplicationPolicy

public ReplicationPolicy getReplicationPolicy()

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.