Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.monitor.services
Class ActiveAlarmTable

    java.lang.Object
      org.jboss.mx.util.JBossNotificationBroadcasterSupport
          org.jboss.system.ServiceMBeanSupport
              org.jboss.system.ListenerServiceMBeanSupport
                  org.jboss.monitor.services.ActiveAlarmTable

All Implemented Interfaces:
  ActiveAlarmTableMBean, EventListener, org.jboss.system.ListenerServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.NotificationListener, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ActiveAlarmTable
extends org.jboss.system.ListenerServiceMBeanSupport
implements ActiveAlarmTableMBean

ActiveAlarmTable

Version:
  $Revision: 1.1.4.1 $
Author:
  Dimitris Andreadis

Nested Class Summary

Nested classes inherited from class org.jboss.system.ListenerServiceMBeanSupport
`org.jboss.system.ListenerServiceMBeanSupport.SubscriptionInfo`

Field Summary

Fields inherited from class org.jboss.system.ServiceMBeanSupport
`log, server, SERVICE_CONTROLLER_SIG, serviceName`

Fields inherited from interface org.jboss.system.ListenerServiceMBean
`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 serverId, String source, String type, 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
`long` | `getNotificationsProcessed()` Number of notifications received.
`String` | `getServerId()` Gets the serverId
`void` | `handleNotification2(javax.management.Notification notification, Object handback)` Overriden to add handling!
`void` | `setServerId(String serverId)` Sets the serverId to use in the produced AlarmTableNotifications
`void` | `startService()` Start
`void` | `stopService()` Stop
`boolean` | `unacknowledge(String serverId, String source, String type, 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, 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, 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`

Constructor Detail

### ActiveAlarmTable

    public ActiveAlarmTable()

  CTOR

Method Detail

### getNotificationsProcessed

    public long getNotificationsProcessed()

  Number of notifications received.

  Specified by:
    `getNotificationsProcessed` in interface `ActiveAlarmTableMBean`

### setServerId

    public void setServerId(String serverId)

  Sets the serverId to use in the produced AlarmTableNotifications

  Specified by:
    `setServerId` in interface `ActiveAlarmTableMBean`

### getServerId

    public String getServerId()

  Gets the serverId

  Specified by:
    `getServerId` in interface `ActiveAlarmTableMBean`

### acknowledgeAll

    public int acknowledgeAll(String user,
                              String system)

  Acknowledge all

  Specified by:
    `acknowledgeAll` in interface `ActiveAlarmTableMBean`
  Returns:
    number of acknowledged alarms

### unacknowledgeAll

    public int unacknowledgeAll(String user,
                                String system)

  Uncknowledge all

  Specified by:
    `unacknowledgeAll` in interface `ActiveAlarmTableMBean`
  Returns:
    number of unacknowledged alarms

### acknowledge

    public boolean acknowledge(String serverId,
                               String source,
                               String type,
                               String user,
                               String system)

  Acknowledge an Alarm

  Specified by:
    `acknowledge` in interface `ActiveAlarmTableMBean`
  Returns:
    true if ack was succesful, false otherwise (not in table or acked already)

### unacknowledge

    public boolean unacknowledge(String serverId,
                                 String source,
                                 String type,
                                 String user,
                                 String system)

  Unacknowledge an Alarm

  Specified by:
    `unacknowledge` in interface `ActiveAlarmTableMBean`
  Returns:
    true if unack was succesful, false otherwise (not in table or unacked already)

### fetchAlarmTable

    public AlarmTableNotification[] fetchAlarmTable()

  Gets the ActiveAlarmTable

  Specified by:
    `fetchAlarmTable` in interface `ActiveAlarmTableMBean`

### fetchAlarmTableAsHtml

    public String fetchAlarmTableAsHtml()

  Gets the ActiveAlarmTable as Html

  Specified by:
    `fetchAlarmTableAsHtml` in interface `ActiveAlarmTableMBean`

### startService

    public void startService()
                      throws Exception

  Start

  Throws:
    `Exception`

### stopService

    public void stopService()
                     throws Exception

  Stop

  Throws:
    `Exception`

### handleNotification2

    public void handleNotification2(javax.management.Notification notification,
                                    Object handback)

  Overriden to add handling!

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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