| java.lang.Object org.jboss.monitor.alarm.AlarmManager
Method Summary | |
public void | clear() | public int | getSeverity(String type) Gets the severity of an alarm, keyed by its type, for the current mbean. | public int | getSeverity(ObjectName name, String type) Gets the severity of an alarm, keyed by its type, for the specified mbean. | public String | getSeverityAsString(String type) | public String | getSeverityAsString(ObjectName name, String type) | public void | sendAlarm(String type, int severity, String message, String key, Object value) Generates and sends an AlarmNotification. | public void | sendAlarm(ObjectName target, String type, int severity, String message, String key, Object value) Generates and sends an AlarmNotification. | public void | sendAlarm(String type, int severity, String message, Object userData) Generates and sends an AlarmNotification. | public void | sendAlarm(ObjectName target, String type, int severity, String message, Object userData) Generates and sends an AlarmNotification. | protected void | sendAlarmNotification(ObjectName target, String type, int severity, int alarmState, String message, Object userData) Generates and sends an AlarmNotification. | public void | sendAttributeChangeNotification(String type, String message, Object userData, String attributeName, String attributeType, Object oldValue, Object newValue) Generates and sends an AttributeChangeNotification. | public void | sendNotification(String type, String message, Object userData) Generates and sends a simple Notification. | public void | setAlarm(String type, int severity, String message, Object userData) Sets the alarm for the current mbean, keyed by its type. | public void | setAlarm(ObjectName target, String type, int severity, String message, Object userData) Sets the alarm for the specified target mbean, keyed by its type. | public void | setAlarm(String type, int severity, String message, String key, Object value) See set Alarm above
Essentially a helper method that will populate the userData field
of the Notification with a HashMap, containing a single key/value pair. | public void | setAlarm(ObjectName target, String type, int severity, String message, String key, Object value) See set Alarm above
Essentially a helper method that will populate the userData field
of the Notification with a HashMap, containing a single key/value pair. | public void | setSeverity(String type, int severity) Sets the severity of an Alarm, keyed by its type, without producing
an AlarmNotification, for the current mbean. | public void | setSeverity(ObjectName name, String type, int severity) Sets the severity of an Alarm, keyed by its type, without producing
an AlarmNotification, for the specified mbean. |
AlarmManager | public AlarmManager(MBeanImplAccess mbeanImpl)(Code) | | CTOR
Parameters: mbeanImpl - providing access to notification broadcasting |
AlarmManager | public AlarmManager(ServiceMBeanSupport service)(Code) | | CTOR
Parameters: service - hosting the AlarmManager |
clear | public void clear()(Code) | | Clear all the stored severities
|
getSeverity | public int getSeverity(String type)(Code) | | Gets the severity of an alarm, keyed by its type, for the current mbean.
|
getSeverity | public int getSeverity(ObjectName name, String type)(Code) | | Gets the severity of an alarm, keyed by its type, for the specified mbean.
|
getSeverityAsString | public String getSeverityAsString(String type)(Code) | | Gets the severity of an alarm as a String,
keyed by its type for the current mbean
|
getSeverityAsString | public String getSeverityAsString(ObjectName name, String type)(Code) | | Gets the severity of an alarm as a String,
keyed by its type for the specified mbean
|
sendAlarm | public void sendAlarm(String type, int severity, String message, String key, Object value)(Code) | | Generates and sends an AlarmNotification.
source, sequenceNumber, timeStamp
will be automatically filled.
|
sendAlarm | public void sendAlarm(ObjectName target, String type, int severity, String message, String key, Object value)(Code) | | Generates and sends an AlarmNotification.
source, sequenceNumber, timeStamp
will be automatically filled.
|
sendAlarm | public void sendAlarm(String type, int severity, String message, Object userData)(Code) | | Generates and sends an AlarmNotification.
source, sequenceNumber, timeStamp
will be automatically filled.
|
sendAlarm | public void sendAlarm(ObjectName target, String type, int severity, String message, Object userData)(Code) | | Generates and sends an AlarmNotification.
source, sequenceNumber, timeStamp
will be automatically filled.
|
sendAlarmNotification | protected void sendAlarmNotification(ObjectName target, String type, int severity, int alarmState, String message, Object userData)(Code) | | Generates and sends an AlarmNotification.
An alarmState of Alarm.STATE_CLEARED forces severity to SEVERITY_NORMAL
source, sequenceNumber, timeStamp
will be automatically filled.
|
sendAttributeChangeNotification | public void sendAttributeChangeNotification(String type, String message, Object userData, String attributeName, String attributeType, Object oldValue, Object newValue)(Code) | | Generates and sends an AttributeChangeNotification.
source, sequenceNumber, timeStamp
will be automatically filled in.
|
sendNotification | public void sendNotification(String type, String message, Object userData)(Code) | | Generates and sends a simple Notification.
source, sequenceNumber, timeStamp
will be automatically filled in.
|
setAlarm | public void setAlarm(String type, int severity, String message, Object userData)(Code) | | Sets the alarm for the current mbean, keyed by its type.
If severity has changed an AlarmNotification will be thrown.
The alarmState of the AlarmNotification will be either
Alarm.STATE_CREATED, Alarm.STATE_CHANGED or Alarm.STATE_CLEARED.
|
setAlarm | public void setAlarm(ObjectName target, String type, int severity, String message, Object userData)(Code) | | Sets the alarm for the specified target mbean, keyed by its type.
If severity has changed an AlarmNotification will be thrown.
The alarmState of the AlarmNotification will be either
Alarm.STATE_CREATED, Alarm.STATE_CHANGED or Alarm.STATE_CLEARED.
|
setAlarm | public void setAlarm(String type, int severity, String message, String key, Object value)(Code) | | See set Alarm above
Essentially a helper method that will populate the userData field
of the Notification with a HashMap, containing a single key/value pair.
Note, that an AlarmNotification will not be emitted if there is no
severity change.
|
setAlarm | public void setAlarm(ObjectName target, String type, int severity, String message, String key, Object value)(Code) | | See set Alarm above
Essentially a helper method that will populate the userData field
of the Notification with a HashMap, containing a single key/value pair.
Note, that an AlarmNotification will not be thrown if there is no
severity change.
|
setSeverity | public void setSeverity(String type, int severity)(Code) | | Sets the severity of an Alarm, keyed by its type, without producing
an AlarmNotification, for the current mbean.
|
setSeverity | public void setSeverity(ObjectName name, String type, int severity)(Code) | | Sets the severity of an Alarm, keyed by its type, without producing
an AlarmNotification, for the specified mbean.
|
|
|