| javax.management.Notification org.jboss.monitor.alarm.AlarmNotification
All known Subclasses: org.jboss.monitor.alarm.AlarmTableNotification,
AlarmNotification | public AlarmNotification(String type, Object source, ObjectName target, int severity, int alarmState, long sequenceNumber, long timeStamp, String message)(Code) | | Complete CTOR, creates an AlarmNotification object
Note:
STATE_CLEARED forces severity to SEVERITY_NORMAL
STATE_CREATED/CHANGED have valid severities WARNING to UNKNOWN
STATE_NONE has valid severities NORMAL to UNKNOWN
Also:
Out-of-range states are mapped to STATE_NONE
Out-of-range severities are mapped to SEVERITY_UNKNOWN
|
getAlarmState | public int getAlarmState()(Code) | | Gets alarm state
|
getEffectiveSource | public static Object getEffectiveSource(Notification n)(Code) | | Returns the effective source for the notification.
In case of a AlarmNotification with a non-null target
the target becomes the source.
|
getSeverity | public int getSeverity()(Code) | | Gets alarm severity
|
getTarget | public ObjectName getTarget()(Code) | | Gets the target MBean name, when the alarm is produced
by 'source' on behalf of the 'target', or null.
|
|
|