org.jboss.monitor.alarm
Class AlarmTable

java.lang.Object
  extended by org.jboss.monitor.alarm.AlarmTable

public class AlarmTable
extends Object

AlarmTable

Version:
$Revision: 57210 $
Author:
Dimitris Andreadis

Field Summary
protected  MBeanImplAccess mbeanImpl
          Mediates the related MBean
 
Constructor Summary
AlarmTable(MBeanImplAccess mbeanImpl)
          CTOR
AlarmTable(org.jboss.system.ServiceMBeanSupport service)
          CTOR
 
Method Summary
 boolean acknowledge(String alarmId, String user, String system)
          Acknowledge an Alarm
 int getAlarmSize()
          Gets the number of entries in the table
 AlarmTableNotification[] getAlarmTable()
          Gets a copy of the AlarmTable
 int getMaxSize()
          Gets the maximum number of entries to keep
 String getServerId()
          Gets the serverId
 void setMaxSize(int maxSize)
          Sets the maximum number of entries to keep -1 equals to no limit.
 void setServerId(String serverId)
          Sets the serverId
 boolean unacknowledge(String alarmId, String user, String system)
          Unacknowledge an Alarm
 void update(javax.management.Notification n)
          Update the AlarmTable based on the incoming Notification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mbeanImpl

protected MBeanImplAccess mbeanImpl
Mediates the related MBean

Constructor Detail

AlarmTable

public AlarmTable(MBeanImplAccess mbeanImpl)
CTOR


AlarmTable

public AlarmTable(org.jboss.system.ServiceMBeanSupport service)
CTOR

Parameters:
service - hosting the AlarmManager
Method Detail

setServerId

public void setServerId(String serverId)
Sets the serverId


getServerId

public String getServerId()
Gets the serverId


setMaxSize

public void setMaxSize(int maxSize)
Sets the maximum number of entries to keep -1 equals to no limit.


getMaxSize

public int getMaxSize()
Gets the maximum number of entries to keep


update

public void update(javax.management.Notification n)
Update the AlarmTable based on the incoming Notification


acknowledge

public boolean acknowledge(String alarmId,
                           String user,
                           String system)
Acknowledge an Alarm

Returns:
true if ack was succesful, false otherwise (not in table or acked already)

unacknowledge

public boolean unacknowledge(String alarmId,
                             String user,
                             String system)
Unacknowledge an Alarm

Returns:
true if unack was succesful, false otherwise (not in table or unacked already)

getAlarmTable

public AlarmTableNotification[] getAlarmTable()
Gets a copy of the AlarmTable


getAlarmSize

public int getAlarmSize()
Gets the number of entries in the table



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