|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jasmine.interfaces.jmx.alarms.JMXAlarmManager
public class JMXAlarmManager
Implementation of the MBean dedicated to alarms.
This MBean supplies methods to retrieve alarm information by giving their id.
It's also able to send notifications when an alarm is raised.
This class must only be manipulated via its unique instance.
| Method Summary | |
|---|---|
javax.management.openmbean.CompositeData |
getAlarm(int id)
Retrieves information on the specified alarm from the log interface. |
javax.management.openmbean.TabularData |
getAlarmRange(int lowid,
int highid)
Retrieves the alarms with an id contained in the specified range of id inclusive. |
static JMXAlarmManager |
getInstance()
Gets the only instance available. |
javax.management.openmbean.TabularData |
getLastAlarms(int nb)
Retrieves information on the last raised alarms from the log interface. |
static javax.management.ObjectName |
getObjectName()
Gets the object name matching the unique instance. |
void |
notifyAlarm(int id)
Sends a notification to the MBean server. |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JMXAlarmManager getInstance()
public static javax.management.ObjectName getObjectName()
public void notifyAlarm(int id)
id - id of the alarm to be notified.public javax.management.openmbean.CompositeData getAlarm(int id)
getAlarm in interface JMXAlarmManagerMBeanid - id of the alarm.
public javax.management.openmbean.TabularData getLastAlarms(int nb)
getLastAlarms in interface JMXAlarmManagerMBeannb - number of alarms to retrieve.
public javax.management.openmbean.TabularData getAlarmRange(int lowid,
int highid)
getAlarmRange in interface JMXAlarmManagerMBeanlowid - the low threshold.highid - the high threshold.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||