|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.system.ListenerServiceMBeanSupport
org.jboss.monitor.services.ActiveAlarmTable
public class ActiveAlarmTable
ActiveAlarmTable
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.system.ListenerServiceMBeanSupport |
---|
org.jboss.system.ListenerServiceMBeanSupport.SubscriptionInfo |
Field Summary | |
---|---|
protected static org.jboss.logging.DynamicLogger |
log
DynamicLogger |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.monitor.services.ActiveAlarmTableMBean |
---|
OBJECT_NAME |
Fields inherited from interface org.jboss.system.ListenerServiceMBean |
---|
SL_FILTER_ELEMENT, SL_FILTER_FACTORY_ATTRIBUTE, SL_MBEAN_ELEMENT, SL_MBEAN_HANDBACK_ATTRIBUTE, SL_MBEAN_NAME_ATTRIBUTE, SL_NOTIFICATION_ELEMENT, SL_NOTIFICATION_TYPE_ATTRIBUTE, SL_ROOT_ELEMENT |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
ActiveAlarmTable()
CTOR |
Method Summary | |
---|---|
boolean |
acknowledge(String alarmId,
String user,
String system)
Acknowledge an Alarm |
int |
acknowledgeAll(String user,
String system)
Acknowledge all |
AlarmTableNotification[] |
fetchAlarmTable()
Gets the ActiveAlarmTable |
String |
fetchAlarmTableAsHtml()
Gets the ActiveAlarmTable as Html |
int |
getActiveAlarmCount()
Number of active alarms in the table |
String |
getLogLevel()
|
int |
getMaxTableSize()
|
long |
getNotificationsReceived()
Number of notifications received. |
String |
getServerId()
|
void |
handleNotification2(javax.management.Notification notification,
Object handback)
Overriden to add handling! |
void |
setLogLevel(String logLevel)
The dynamic log level |
void |
setMaxTableSize(int maxSize)
The maximum number of alarms to keep, use -1 to disable |
void |
setServerId(String serverId)
The unique serverId |
void |
startService()
Start |
void |
stopService()
Stop |
protected String |
substNewLines(Object input)
Convert every occurence of "\n" to " " |
boolean |
unacknowledge(String alarmId,
String user,
String system)
Unacknowledge an Alarm |
int |
unacknowledgeAll(String user,
String system)
Uncknowledge all |
Methods inherited from class org.jboss.system.ListenerServiceMBeanSupport |
---|
handleNotification, setSubscriptionList, subscribe, subscribe, subscribe, unsubscribe |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ListenerServiceMBean |
---|
setSubscriptionList |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
protected static final org.jboss.logging.DynamicLogger log
Constructor Detail |
---|
public ActiveAlarmTable()
Method Detail |
---|
public int getActiveAlarmCount()
ActiveAlarmTableMBean
getActiveAlarmCount
in interface ActiveAlarmTableMBean
public long getNotificationsReceived()
ActiveAlarmTableMBean
getNotificationsReceived
in interface ActiveAlarmTableMBean
public void setServerId(String serverId)
ActiveAlarmTableMBean
setServerId
in interface ActiveAlarmTableMBean
public void setMaxTableSize(int maxSize)
ActiveAlarmTableMBean
setMaxTableSize
in interface ActiveAlarmTableMBean
public int getMaxTableSize()
getMaxTableSize
in interface ActiveAlarmTableMBean
public String getServerId()
getServerId
in interface ActiveAlarmTableMBean
public void setLogLevel(String logLevel)
ActiveAlarmTableMBean
setLogLevel
in interface ActiveAlarmTableMBean
public String getLogLevel()
getLogLevel
in interface ActiveAlarmTableMBean
public int acknowledgeAll(String user, String system)
acknowledgeAll
in interface ActiveAlarmTableMBean
public int unacknowledgeAll(String user, String system)
unacknowledgeAll
in interface ActiveAlarmTableMBean
public boolean acknowledge(String alarmId, String user, String system)
acknowledge
in interface ActiveAlarmTableMBean
public boolean unacknowledge(String alarmId, String user, String system)
unacknowledge
in interface ActiveAlarmTableMBean
public AlarmTableNotification[] fetchAlarmTable()
fetchAlarmTable
in interface ActiveAlarmTableMBean
public String fetchAlarmTableAsHtml()
fetchAlarmTableAsHtml
in interface ActiveAlarmTableMBean
public void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
public void stopService() throws Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
Exception
public void handleNotification2(javax.management.Notification notification, Object handback)
handleNotification2
in class org.jboss.system.ListenerServiceMBeanSupport
protected String substNewLines(Object input)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |