public interface ThresholdRuleManagementMBean
ThresholdRuleManagementMBean
interface provides methods to create and
manage threshold alarms rules in Rhino.Modifier and Type | Field and Description |
---|---|
static String |
MBEAN_NAME
The name of this MBean, equal to the string "ThresholdRules".
|
static String |
OBJECT_NAME
The JMX Object Name of this MBean.
|
Modifier and Type | Method and Description |
---|---|
ObjectName |
createRule(String ruleName)
Create a new rule.
|
TabularData |
getAllRules()
Description information for all rules
The data returned is
TabularData with the following items in each CompositeData element:
Column name
JMX type
Description
rule-name
SimpleType.STRING
The name of the rule described in the row. |
ObjectName |
getRule(String ruleName)
Manage a rule.
|
String[] |
getRules()
The rule names.
|
int |
getScanPeriod()
Get the scan period for checking threshold rules.
|
void |
removeRule(String ruleName)
Removes a rule.
|
void |
setScanPeriod(int scanPeriod)
Set the scan period for checking threshold rules.
|
static final String MBEAN_NAME
static final String OBJECT_NAME
void setScanPeriod(int scanPeriod) throws ConfigurationException, com.opencloud.util.exception.ValidationException
scanPeriod
- period in milliseconds. Must be greater than 500,
or 0 to disable rule checking.ConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionint getScanPeriod() throws ConfigurationException
ConfigurationException
- An exceptionObjectName createRule(String ruleName) throws ConfigurationException, com.opencloud.util.exception.ValidationException
ruleName
- the name of the ruleThresholdRuleMBean
.ConfigurationException
com.opencloud.util.exception.ValidationException
ObjectName getRule(String ruleName) throws ConfigurationException
ruleName
- the name of the ruleThresholdRuleMBean
.ConfigurationException
String[] getRules() throws ConfigurationException
ConfigurationException
TabularData getAllRules() throws OpenDataException, ConfigurationException
The data returned is TabularData
with the following items in each CompositeData
element:
Column name | JMX type | Description | rule-name | SimpleType.STRING |
The name of the rule described in the row. | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alarm-info | CompositeData
|
The alarm that is raised when the threshold is exceeded. | ||||||||||||
trigger-conditions | SimpleType.STRING[] |
The conditions that will cause the rule to be triggered | ||||||||||||
reset-conditions | SimpleType.STRING[] |
The conditions that will cause the rule to be reset | ||||||||||||
trigger-conditions-operator | SimpleType.STRING |
The boolean operator (AND/OR) joining trigger conditions | ||||||||||||
reset-conditions-operator | SimpleType.STRING |
The boolean operator (AND/OR) joining reset conditions | ||||||||||||
trigger-period | SimpleType.LONG |
The period the trigger condition must hold for before trigger actions are invoked | ||||||||||||
reset-period | SimpleType.LONG |
The period the reset condition must hold for before reset actions are invoked | ||||||||||||
trigger-conditions-operator | SimpleType.STRING |
The boolean operator (AND/OR) joining trigger conditions | ||||||||||||
active | SimpleType.BOOLEAN |
True if the rule is active |
OpenDataException
ConfigurationException
void removeRule(String ruleName) throws ConfigurationException, com.opencloud.util.exception.ValidationException
ruleName
- the name of the ruleConfigurationException
com.opencloud.util.exception.ValidationException