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
FieldsModifier and TypeFieldDescriptionprotected floatAction policy threshold in percentage.protected intAction policy rule mask.protected intAction policy threshold which is always non-negative.protected StringA rule element name to be used to construct ConfigurationException description if it throws at instantiation time.protected XmlElementAn optional xml configuration element to be used in ConfigurationException. -
Constructor Summary
ConstructorsConstructorDescriptionQuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, float flThresholdPct, XmlElement xmlElement) ConstructsActionPolicyBuilder.QuorumRuleQuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, XmlElement xmlElement) ConstructsActionPolicyBuilder.QuorumRule -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Throw ConfigurationException if thism_xmlElementconfiguration 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_xmlElementconfiguration violates constraints.- Throws:
ConfigurationException- describing invalid configuration.
-