org.jboss.monitor.alarm
Class AlarmTableNotification

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

public class AlarmTableNotification
extends AlarmNotification

AlarmTableNotification userData field, holds a reference to the source Notification

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

Field Summary
static String ALARM_TABLE_UPDATE
          The type of AlarmTableNotification
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
AlarmTableNotification(AlarmTableNotification atn)
          Copy Constructor.
AlarmTableNotification(String alarmId, String type, Object source, javax.management.ObjectName target, int severity, int alarmState, long sequenceNumber, long timeStamp, String message)
          CTOR, creates an AlarmTableNotification object Same restrictions with AlarmNotification apply
 
Method Summary
 boolean getAckState()
          Gets the acked/unacked status of the alarm
 String getAckSystem()
          Gets the system that performed the ack/unack
 long getAckTime()
          Gets the last time the alarm was acked/unacked
 String getAckUser()
          Gets the user that performed the ack/unack
 String getAlarmId()
          Gets alarmId
 void setAckParams(boolean ackState, long ackTime, String ackUser, String ackSystem)
          Sets all ack parameters
 String toString()
          toString()
 
Methods inherited from class org.jboss.monitor.alarm.AlarmNotification
createKey, getAlarmState, getEffectiveSource, getSeverity, getTarget
 
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
 

Field Detail

ALARM_TABLE_UPDATE

public static final String ALARM_TABLE_UPDATE
The type of AlarmTableNotification

See Also:
Constant Field Values
Constructor Detail

AlarmTableNotification

public AlarmTableNotification(String alarmId,
                              String type,
                              Object source,
                              javax.management.ObjectName target,
                              int severity,
                              int alarmState,
                              long sequenceNumber,
                              long timeStamp,
                              String message)
CTOR, creates an AlarmTableNotification object Same restrictions with AlarmNotification apply


AlarmTableNotification

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

Method Detail

getAlarmId

public String getAlarmId()
Gets alarmId


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 String getAckUser()
Gets the user that performed the ack/unack


getAckSystem

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


setAckParams

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


toString

public String toString()
toString()

Overrides:
toString in class AlarmNotification


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