org.jboss.monitor.alarm
Class AlarmTableNotification

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.management.Notification (src) 
          extended byorg.jboss.monitor.alarm.AlarmNotification (src) 
              extended byorg.jboss.monitor.alarm.AlarmTableNotification
All Implemented Interfaces:
java.io.Serializable

public class AlarmTableNotification
extends AlarmNotification (src)

AlarmTableNotification userData field, holds a reference to the source Notification

See Also:
Serialized Form

Field Summary
static java.lang.String ALARM_TABLE_UPDATE
          the type of AlarmTableNotification
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AlarmTableNotification(AlarmTableNotification (src)  atn)
          Copy Constructor.
AlarmTableNotification(java.lang.String type, java.lang.Object source, long sequenceNumber, long timeStamp, java.lang.String message, int alarmState, int severity, java.lang.String serverId)
          CTOR, creates an AlarmTableNotification object Same restrictions with AlarmNotification apply
 
Method Summary
 java.lang.Object createKey()
          Returns a key that can be used in AlarmTables (maps)
 boolean getAckState()
          Gets the acked/unacked status of the alarm
 java.lang.String getAckSystem()
          Gets the system that performed the ack/unack
 long getAckTime()
          Gets the last time the alarm was acked/unacked
 java.lang.String getAckUser()
          Gets the user that performed the ack/unack
 java.lang.String getServerId()
          Gets serverId
 void setAckParams(boolean ackState, long ackTime, java.lang.String ackUser, java.lang.String ackSystem)
          Sets all ack parameters
 java.lang.String toString()
          toString()
 
Methods inherited from class org.jboss.monitor.alarm.AlarmNotification (src)
getAlarmState, getSeverity
 
Methods inherited from class javax.management.Notification (src)
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALARM_TABLE_UPDATE

public static final java.lang.String ALARM_TABLE_UPDATE
the type of AlarmTableNotification

See Also:
Constant Field Values (src)
Constructor Detail

AlarmTableNotification

public AlarmTableNotification(java.lang.String type,
                              java.lang.Object source,
                              long sequenceNumber,
                              long timeStamp,
                              java.lang.String message,
                              int alarmState,
                              int severity,
                              java.lang.String serverId)
CTOR, creates an AlarmTableNotification object Same restrictions with AlarmNotification apply


AlarmTableNotification

public AlarmTableNotification(AlarmTableNotification (src)  atn)
Copy Constructor. Note, userData is not deep copied!

Method Detail

getServerId

public java.lang.String getServerId()
Gets serverId


getAckState

public boolean getAckState()
Gets the acked/unacked status of the alarm


getAckTime

public long getAckTime()
Gets the last time the alarm was acked/unacked


getAckUser

public java.lang.String getAckUser()
Gets the user that performed the ack/unack


getAckSystem

public java.lang.String getAckSystem()
Gets the system that performed the ack/unack


setAckParams

public void setAckParams(boolean ackState,
                         long ackTime,
                         java.lang.String ackUser,
                         java.lang.String ackSystem)
Sets all ack parameters


createKey

public java.lang.Object createKey()
Returns a key that can be used in AlarmTables (maps)


toString

public java.lang.String toString()
toString()

Overrides:
toString in class AlarmNotification (src)