org.jboss.monitor.alarm
Class AlarmNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by org.jboss.monitor.alarm.AlarmNotification
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlarmTableNotification

public class AlarmNotification
extends javax.management.Notification

AlarmNotification

Version:
$Revision: 57210 $
Author:
Dimitris Andreadis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
AlarmNotification(String type, Object source, javax.management.ObjectName target, int severity, int alarmState, long sequenceNumber, long timeStamp, String message)
          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
 
Method Summary
static Object createKey(javax.management.Notification n)
          Returns a key that can be used in AlarmTables (maps)
 int getAlarmState()
          Gets alarm state
static Object getEffectiveSource(javax.management.Notification n)
          Returns the effective source for the notification.
 int getSeverity()
          Gets alarm severity
 javax.management.ObjectName getTarget()
          Gets the target MBean name, when the alarm is produced by 'source' on behalf of the 'target', or null.
 String toString()
          toString()
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlarmNotification

public AlarmNotification(String type,
                         Object source,
                         javax.management.ObjectName target,
                         int severity,
                         int alarmState,
                         long sequenceNumber,
                         long timeStamp,
                         String message)
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

Method Detail

createKey

public static Object createKey(javax.management.Notification n)
Returns a key that can be used in AlarmTables (maps)


getEffectiveSource

public static Object getEffectiveSource(javax.management.Notification n)
Returns the effective source for the notification. In case of a AlarmNotification with a non-null target the target becomes the source.


getTarget

public javax.management.ObjectName getTarget()
Gets the target MBean name, when the alarm is produced by 'source' on behalf of the 'target', or null.


getSeverity

public int getSeverity()
Gets alarm severity


getAlarmState

public int getAlarmState()
Gets alarm state


toString

public String toString()
toString()

Overrides:
toString in class javax.management.Notification


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.