Skip navigation links
com.tangosol.net
Class ConfigurableQuorumPolicy.ProxyQuorumPolicy
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.ConfigurableQuorumPolicy
com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
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.
Field Summary |
protected static int |
MASK_CONNECT
Bitmask used to encode a client connection action. |
Methods inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy |
configure, getCurrentRule, getLeavingMembers, getPolicyPopulation, getQuorumRules, getQuorumValue, getService, init, instantiateMemberListener, setCurrentRule, setQuorumRules, setService, sortByThreshold, toString, updateCurrentRule |
MASK_CONNECT
protected static final int MASK_CONNECT
- Bitmask used to encode a client connection action.
- See Also:
- Constant Field Values
ConfigurableQuorumPolicy.ProxyQuorumPolicy
protected ConfigurableQuorumPolicy.ProxyQuorumPolicy(XmlElement xmlConfig)
- Construct a ProxyQuorumPolicy with the specified config.
- Parameters:
xmlConfig
- the configuration XmlElement
getStatusDescription
public 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. <p/> 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
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.