Class ActionPolicyBuilder.QuorumRule
java.lang.Object
com.tangosol.coherence.config.builder.ActionPolicyBuilder.QuorumRule
- Enclosing class:
ActionPolicyBuilder
Intermediate QuorumRule with enough information to report a ConfigurationException
at instantiation time.
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
Action policy threshold in percentage.protected int
Action policy rule mask.protected int
Action policy threshold which is always non-negative.protected String
A rule element name to be used to construct ConfigurationException description if it throws at instantiation time.protected XmlElement
An optional xml configuration element to be used in ConfigurationException. -
Constructor Summary
ConstructorDescriptionQuorumRule
(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
Modifier and TypeMethodDescriptionvoid
validate()
Throw ConfigurationException if thism_xmlElement
configuration violates constraints.
-
Field Details
-
m_xmlElement
An optional xml configuration element to be used in ConfigurationException. -
m_sRuleElementName
A rule element name to be used to construct ConfigurationException description if it throws at instantiation time. -
m_nRuleMask
protected int m_nRuleMaskAction policy rule mask. -
m_nThreshold
protected int m_nThresholdAction policy threshold which is always non-negative. -
m_flThresholdPct
protected float m_flThresholdPctAction policy threshold in percentage.
-
-
Constructor Details
-
QuorumRule
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 Details
-
validate
Throw ConfigurationException if thism_xmlElement
configuration violates constraints.- Throws:
ConfigurationException
- describing invalid configuration.
-