public static class ActionPolicyBuilder.QuorumRule extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
QuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, XmlElement xmlElement)
Constructs
ActionPolicyBuilder.QuorumRule |
| Modifier and Type | Method and Description |
|---|---|
void |
validate()
Throw ConfigurationException if this
m_xmlElement configuration violates constraints. |
protected XmlElement m_xmlElement
protected String m_sRuleElementName
protected int m_nRuleMask
protected int m_nThreshold
public QuorumRule(String sRuleElementName, int nRuleMask, int nThreshold, XmlElement xmlElement)
ActionPolicyBuilder.QuorumRulesRuleElementName - to report configuration exception contextnRuleMask - rule masknThreshold - thresholdxmlElement - optional to report configuration exception context
public void validate()
throws ConfigurationException
m_xmlElement configuration violates constraints.ConfigurationException - describing invalid configuration.