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 float
m_flThresholdPct
Action policy threshold in percentage.protected int
m_nRuleMask
Action policy rule mask.protected int
m_nThreshold
Action policy threshold which is always non-negative.protected String
m_sRuleElementName
A rule element name to be used to construct ConfigurationException description if it throws at instantiation time.protected XmlElement
m_xmlElement
An 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.QuorumRule
QuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, XmlElement xmlElement)
ConstructsActionPolicyBuilder.QuorumRule
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Throw ConfigurationException if thism_xmlElement
configuration 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 ConfigurationException
Throw ConfigurationException if thism_xmlElement
configuration violates constraints.- Throws:
ConfigurationException
- describing invalid configuration.
-
-