Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Class ConfigurableQuorumPolicy.ProxyQuorumPolicy

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

All Implemented Interfaces:
ActionPolicy
Enclosing class:
ConfigurableQuorumPolicy

public static class ConfigurableQuorumPolicy.ProxyQuorumPolicy
extends ConfigurableQuorumPolicy.MembershipQuorumPolicy

ProxyQuorumPolicy defines a configurable quorum policy that is applicable to a proxy service.


Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumListener, ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule

 

Nested classes/interfaces inherited from class com.tangosol.net.ConfigurableQuorumPolicy
ConfigurableQuorumPolicy.ClusterQuorumPolicy, ConfigurableQuorumPolicy.MembershipQuorumPolicy, ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy, ConfigurableQuorumPolicy.ProxyQuorumPolicy, ConfigurableQuorumPolicy.WrapperQuorumPolicy

 

Field Summary
protected static int MASK_CONNECT
          Bitmask used to encode a client connection action.

 

Fields inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
m_aRules, m_ruleCurrent, m_service, m_setLeaving

 

Fields inherited from class com.tangosol.net.ConfigurableQuorumPolicy
m_xmlConfig

 

Constructor Summary
protected ConfigurableQuorumPolicy.ProxyQuorumPolicy(XmlElement xmlConfig)
          Construct a ProxyQuorumPolicy with the specified config.

 

Method Summary
protected  void configure(XmlElement xmlConfig)
          Configure the quorum policy using the specified xml.
 java.lang.String getStatusDescription()
          Return a String that describes the current Quorum state.
 boolean isAllowed(Service service, Action action)
          Evaluate if the specified action is currently allowed by this policy.

 

Methods inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
configure, getCurrentRule, getLeavingMembers, getPolicyPopulation, getQuorumRules, getQuorumValue, getService, init, instantiateMemberListener, setCurrentRule, setQuorumRules, setService, sortByThreshold, toString, updateCurrentRule

 

Methods inherited from class com.tangosol.net.ConfigurableQuorumPolicy
createPolicy, getConfig, instantiateClusterPolicy, instantiatePartitionedCachePolicy, instantiateProxyPolicy

 

Field Detail

MASK_CONNECT

protected static final int MASK_CONNECT
Bitmask used to encode a client connection action.
See Also:
Constant Field Values

Constructor Detail

ConfigurableQuorumPolicy.ProxyQuorumPolicy

protected ConfigurableQuorumPolicy.ProxyQuorumPolicy(XmlElement xmlConfig)
Construct a ProxyQuorumPolicy with the specified config.
Parameters:
xmlConfig - the configuration XmlElement

Method Detail

getStatusDescription

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

configure

protected void configure(XmlElement xmlConfig)
Configure the quorum policy using the specified xml.
Parameters:
xmlConfig - the XML configuration element

isAllowed

public boolean isAllowed(Service service,
                         Action action)
Evaluate if the specified action is currently allowed by this policy.

Note: for forward compatibility, implementations should generally return true for actions that are not recognized.

Parameters:
service - the service that is performing the action
action - the action that is being performed
Returns:
true iff the specified action is currently allowed by this policy

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.