|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.monitor.alarm.AlarmManager
public class AlarmManager
AlarmManager
Field Summary | |
---|---|
protected MBeanImplAccess |
mbeanImpl
Mediates the related MBean |
Constructor Summary | |
---|---|
AlarmManager(MBeanImplAccess mbeanImpl)
CTOR |
|
AlarmManager(org.jboss.system.ServiceMBeanSupport service)
CTOR |
Method Summary | |
---|---|
void |
clear()
Clear all the stored severities |
int |
getSeverity(javax.management.ObjectName name,
String type)
Gets the severity of an alarm, keyed by its type, for the specified mbean. |
int |
getSeverity(String type)
Gets the severity of an alarm, keyed by its type, for the current mbean. |
String |
getSeverityAsString(javax.management.ObjectName name,
String type)
Gets the severity of an alarm as a String, keyed by its type for the specified mbean |
String |
getSeverityAsString(String type)
Gets the severity of an alarm as a String, keyed by its type for the current mbean |
void |
sendAlarm(javax.management.ObjectName target,
String type,
int severity,
String message,
Object userData)
Generates and sends an AlarmNotification. |
void |
sendAlarm(javax.management.ObjectName target,
String type,
int severity,
String message,
String key,
Object value)
Generates and sends an AlarmNotification. |
void |
sendAlarm(String type,
int severity,
String message,
Object userData)
Generates and sends an AlarmNotification. |
void |
sendAlarm(String type,
int severity,
String message,
String key,
Object value)
Generates and sends an AlarmNotification. |
protected void |
sendAlarmNotification(javax.management.ObjectName target,
String type,
int severity,
int alarmState,
String message,
Object userData)
Generates and sends an AlarmNotification. |
void |
sendAttributeChangeNotification(String type,
String message,
Object userData,
String attributeName,
String attributeType,
Object oldValue,
Object newValue)
Generates and sends an AttributeChangeNotification. |
void |
sendNotification(String type,
String message,
Object userData)
Generates and sends a simple Notification. |
void |
setAlarm(javax.management.ObjectName target,
String type,
int severity,
String message,
Object userData)
Sets the alarm for the specified target mbean, keyed by its type. |
void |
setAlarm(javax.management.ObjectName target,
String type,
int severity,
String message,
String key,
Object value)
See set Alarm above Essentially a helper method that will populate the userData field of the Notification with a HashMap, containing a single key/value pair. |
void |
setAlarm(String type,
int severity,
String message,
Object userData)
Sets the alarm for the current mbean, keyed by its type. |
void |
setAlarm(String type,
int severity,
String message,
String key,
Object value)
See set Alarm above Essentially a helper method that will populate the userData field of the Notification with a HashMap, containing a single key/value pair. |
void |
setSeverity(javax.management.ObjectName name,
String type,
int severity)
Sets the severity of an Alarm, keyed by its type, without producing an AlarmNotification, for the specified mbean. |
void |
setSeverity(String type,
int severity)
Sets the severity of an Alarm, keyed by its type, without producing an AlarmNotification, for the current mbean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MBeanImplAccess mbeanImpl
Constructor Detail |
---|
public AlarmManager(MBeanImplAccess mbeanImpl)
mbeanImpl
- providing access to notification broadcastingpublic AlarmManager(org.jboss.system.ServiceMBeanSupport service)
service
- hosting the AlarmManagerMethod Detail |
---|
public void setSeverity(String type, int severity)
public void setSeverity(javax.management.ObjectName name, String type, int severity)
public int getSeverity(String type)
public int getSeverity(javax.management.ObjectName name, String type)
public String getSeverityAsString(String type)
public String getSeverityAsString(javax.management.ObjectName name, String type)
public void setAlarm(String type, int severity, String message, Object userData)
public void setAlarm(javax.management.ObjectName target, String type, int severity, String message, Object userData)
public void setAlarm(String type, int severity, String message, String key, Object value)
public void setAlarm(javax.management.ObjectName target, String type, int severity, String message, String key, Object value)
public void sendAlarm(String type, int severity, String message, String key, Object value)
public void sendAlarm(javax.management.ObjectName target, String type, int severity, String message, String key, Object value)
public void sendAlarm(String type, int severity, String message, Object userData)
public void sendAlarm(javax.management.ObjectName target, String type, int severity, String message, Object userData)
protected void sendAlarmNotification(javax.management.ObjectName target, String type, int severity, int alarmState, String message, Object userData)
public void sendAttributeChangeNotification(String type, String message, Object userData, String attributeName, String attributeType, Object oldValue, Object newValue)
public void sendNotification(String type, String message, Object userData)
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |