|
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.MembershipQuorumPolicy
com.tangosol.net.ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy
public static class ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy
PartitionedCacheQuorumPolicy defines a configurable quorum policy that is applicable to a DistributedCacheService.
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_DISTRIBUTION Bitmask used to encode a distribution action. |
protected static int |
MASK_READ Bitmask used to encode a read action. |
protected static int |
MASK_RESTORE Bitmask used to encode a partition restore action. |
protected static int |
MASK_WRITE Bitmask used to encode a write 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.PartitionedCacheQuorumPolicy(XmlElement xmlConfig) Construct a PartitionedCacheQuorumPolicy with the specified config. |
Method Summary | |
---|---|
protected void |
configure(XmlElement xmlConfig) Configure the quorum policy using the specified xml. |
int |
getPolicyPopulation() Calculate and return the current size of the member set that contributes to the quorum for this policy domain. Note: The quorum for PartitionedService is determined by the ownership-enabled members only. |
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, 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 |
---|
protected static final int MASK_DISTRIBUTION
protected static final int MASK_RESTORE
protected static final int MASK_READ
protected static final int MASK_WRITE
Constructor Detail |
---|
protected ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy(XmlElement xmlConfig)
xmlConfig
- the configuration XmlElementMethod Detail |
---|
public String getStatusDescription()
getStatusDescription
in class ConfigurableQuorumPolicy
protected void configure(XmlElement xmlConfig)
xmlConfig
- the XML configuration elementpublic int getPolicyPopulation()
getPolicyPopulation
in class ConfigurableQuorumPolicy.MembershipQuorumPolicy
public boolean isAllowed(Service service, Action action)
service
- the service that is performing the actionaction
- the action that is being performed
|
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 |