|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.ConfigurableQuorumPolicy
com.tangosol.net.ConfigurableQuorumPolicy.WrapperQuorumPolicy
protected static class ConfigurableQuorumPolicy.WrapperQuorumPolicy
WrapperQuorumPolicy is a ConfigurableQuorumPolicy that wraps an arbitrary ActionPolicy instance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.net.ConfigurableQuorumPolicy |
---|
ConfigurableQuorumPolicy.ClusterQuorumPolicy, ConfigurableQuorumPolicy.MembershipQuorumPolicy, ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy, ConfigurableQuorumPolicy.ProxyQuorumPolicy, ConfigurableQuorumPolicy.WrapperQuorumPolicy |
Field Summary | |
---|---|
protected ActionPolicy |
m_policy The wrapped ActionPolicy |
Fields inherited from class com.tangosol.net.ConfigurableQuorumPolicy |
---|
m_xmlConfig |
Constructor Summary | |
---|---|
protected |
ConfigurableQuorumPolicy.WrapperQuorumPolicy(ActionPolicy policy, XmlElement xmlConfig) Create a WrapperQuorumPolicy around the specified ActionPolicy, instantiated by the specified configuration. |
Method Summary | |
---|---|
ActionPolicy |
getPolicy() Return the wrapped ActionPolicy. |
String |
getStatusDescription() Return a String that describes the current Quorum state. |
void |
init(Service service) Called when the specified service loads and configures this policy. |
boolean |
isAllowed(Service service, Action action) Evaluate if the specified action is currently allowed by this policy. |
String |
toString() Return a human-readable String representation of this ActionPolicy. |
Methods inherited from class com.tangosol.net.ConfigurableQuorumPolicy |
---|
createPolicy, getConfig, instantiateClusterPolicy, instantiatePartitionedCachePolicy, instantiateProxyPolicy |
Field Detail |
---|
protected ActionPolicy m_policy
Constructor Detail |
---|
protected ConfigurableQuorumPolicy.WrapperQuorumPolicy(ActionPolicy policy, XmlElement xmlConfig)
policy
- the ActionPolicy to wrapxmlConfig
- the configuration used to instantiate the policyMethod Detail |
---|
public ActionPolicy getPolicy()
public String getStatusDescription()
getStatusDescription
in class ConfigurableQuorumPolicy
public void init(Service service)
service
- the service that this policy applies topublic boolean isAllowed(Service service, Action action)
service
- the service that is performing the actionaction
- the action that is being performedpublic String toString()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |