Class ActionPolicyBuilder.QuorumRule
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ActionPolicyBuilder.QuorumRule
-
- Enclosing class:
- ActionPolicyBuilder
public static class ActionPolicyBuilder.QuorumRule extends Object
Intermediate QuorumRule with enough information to report a ConfigurationException at instantiation time.
-
-
Field Summary
Fields Modifier and Type Field Description protected floatm_flThresholdPctAction policy threshold in percentage.protected intm_nRuleMaskAction policy rule mask.protected intm_nThresholdAction policy threshold which is always non-negative.protected Stringm_sRuleElementNameA rule element name to be used to construct ConfigurationException description if it throws at instantiation time.protected XmlElementm_xmlElementAn optional xml configuration element to be used in ConfigurationException.
-
Constructor Summary
Constructors Constructor Description QuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, float flThresholdPct, XmlElement xmlElement)ConstructsActionPolicyBuilder.QuorumRuleQuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, XmlElement xmlElement)ConstructsActionPolicyBuilder.QuorumRule
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Throw ConfigurationException if thism_xmlElementconfiguration violates constraints.
-
-
-
Field Detail
-
m_xmlElement
protected XmlElement m_xmlElement
An optional xml configuration element to be used in ConfigurationException.
-
m_sRuleElementName
protected String m_sRuleElementName
A rule element name to be used to construct ConfigurationException description if it throws at instantiation time.
-
m_nRuleMask
protected int m_nRuleMask
Action policy rule mask.
-
m_nThreshold
protected int m_nThreshold
Action policy threshold which is always non-negative.
-
m_flThresholdPct
protected float m_flThresholdPct
Action policy threshold in percentage.
-
-
Constructor Detail
-
QuorumRule
public QuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, XmlElement xmlElement)
ConstructsActionPolicyBuilder.QuorumRule- Parameters:
sRuleElementName- to report configuration exception contextnRuleMask- rule masknThreshold- thresholdxmlElement- optional to report configuration exception context
-
QuorumRule
public QuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, float flThresholdPct, XmlElement xmlElement)
ConstructsActionPolicyBuilder.QuorumRule- Parameters:
sRuleElementName- to report configuration exception contextnRuleMask- rule masknThreshold- thresholdflThresholdPct- the threshold in percentagexmlElement- optional to report configuration exception context
-
-
Method Detail
-
validate
public void validate() throws ConfigurationExceptionThrow ConfigurationException if thism_xmlElementconfiguration violates constraints.- Throws:
ConfigurationException- describing invalid configuration.
-
-