Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Class ConfigurableQuorumPolicy

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.ConfigurableQuorumPolicy

All Implemented Interfaces:
ActionPolicy
Direct Known Subclasses:
ConfigurableQuorumPolicy.ClusterQuorumPolicy, ConfigurableQuorumPolicy.MembershipQuorumPolicy, ConfigurableQuorumPolicy.WrapperQuorumPolicy

public abstract class ConfigurableQuorumPolicy
extends Base
implements ActionPolicy

ConfigurableQuorumPolicy provides a Quorum-based ActionPolicy for services based on the cluster-configuration.

Since:
Coherence 3.6
Author:
rhl 2009.05.07

Nested Class Summary
static class ConfigurableQuorumPolicy.ClusterQuorumPolicy
          ClusterQuorumPolicy defines an action policy that is applicable to the cluster.
protected static class ConfigurableQuorumPolicy.MembershipQuorumPolicy
          MembershipQuorumPolicy is a quorum policy that is stateless and based solely on service membership sizes.
static class ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy
          PartitionedCacheQuorumPolicy defines a configurable quorum policy that is applicable to a DistributedCacheService.
static class ConfigurableQuorumPolicy.ProxyQuorumPolicy
          ProxyQuorumPolicy defines a configurable quorum policy that is applicable to a proxy service.
protected static class ConfigurableQuorumPolicy.WrapperQuorumPolicy
          WrapperQuorumPolicy is a ConfigurableQuorumPolicy that wraps an arbitrary ActionPolicy instance.

 

Field Summary
protected  XmlElement m_xmlConfig
          The Xml configuration used to configure this policy.

 

Constructor Summary
protected ConfigurableQuorumPolicy(XmlElement xmlConfig)
          Create a ConfigurableQuorumPolicy using the specified Xml configuration.

 

Method Summary
static ConfigurableQuorumPolicy createPolicy(XmlElement xmlConfig, java.lang.ClassLoader loader)
          Create an action policy based on the specified XML configuration.
 XmlElement getConfig()
          Obtain the factory configuration XML.
abstract  java.lang.String getStatusDescription()
          Return a String that describes the current Quorum state.
static ConfigurableQuorumPolicy.ClusterQuorumPolicy instantiateClusterPolicy(XmlElement xmlConfig)
          Instantiate an action policy for the cluster with the specified XML configuration.
static ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy instantiatePartitionedCachePolicy(XmlElement xmlConfig)
          Instantiate an action policy for a PartitionedCache service with the specified XML configuration.
static ConfigurableQuorumPolicy.ProxyQuorumPolicy instantiateProxyPolicy(XmlElement xmlConfig)
          Instantiate an action policy for a proxy service with the specified XML configuration.

 

Methods inherited from interface com.tangosol.net.ActionPolicy
init, isAllowed, toString

 

Field Detail

m_xmlConfig

protected XmlElement m_xmlConfig
The Xml configuration used to configure this policy.

Constructor Detail

ConfigurableQuorumPolicy

protected ConfigurableQuorumPolicy(XmlElement xmlConfig)
Create a ConfigurableQuorumPolicy using the specified Xml configuration.
Parameters:
xmlConfig - the Xml configuration

Method Detail

getConfig

public XmlElement getConfig()
Obtain the factory configuration XML.
Returns:
the configuration XML

getStatusDescription

public abstract java.lang.String getStatusDescription()
Return a String that describes the current Quorum state.
Returns:
a String describing the allowed actions in the current state

createPolicy

public static ConfigurableQuorumPolicy createPolicy(XmlElement xmlConfig,
                                                    java.lang.ClassLoader loader)
Create an action policy based on the specified XML configuration.
Parameters:
xmlConfig - the XML element that contains the configuration info
loader - the class loader to instantiate the policy
Returns:
a ConfigurableQuorumPolicy instance

instantiatePartitionedCachePolicy

public static ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy instantiatePartitionedCachePolicy(XmlElement xmlConfig)
Instantiate an action policy for a PartitionedCache service with the specified XML configuration.
Parameters:
xmlConfig - the XML element that contains the configuration info
Returns:
an action policy for a PartitionedCache service

instantiateProxyPolicy

public static ConfigurableQuorumPolicy.ProxyQuorumPolicy instantiateProxyPolicy(XmlElement xmlConfig)
Instantiate an action policy for a proxy service with the specified XML configuration.
Parameters:
xmlConfig - the XML element that contains the configuration info
Returns:
an action policy for a proxy service

instantiateClusterPolicy

public static ConfigurableQuorumPolicy.ClusterQuorumPolicy instantiateClusterPolicy(XmlElement xmlConfig)
Instantiate an action policy for the cluster with the specified XML configuration.
Parameters:
xmlConfig - the XML element that contains the configuration info
Returns:
an action policy for the cluster

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.