org.jboss.monitor.alerts
Class ConsoleAlertListener

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.monitor.alerts.JBossAlertListener (src) 
              extended byorg.jboss.monitor.alerts.ConsoleAlertListener
All Implemented Interfaces:
ConsoleAlertListenerMBean (src) , java.util.EventListener, JBossAlertListenerMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , NotificationListener (src) , Service (src) , ServiceMBean (src)

public class ConsoleAlertListener
extends JBossAlertListener (src)
implements ConsoleAlertListenerMBean (src)

Comment


Field Summary
protected  java.lang.String messageTemplate
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
ConsoleAlertListener()
           
 
Method Summary
 java.lang.String getMessageTemplate()
           
 void handleNotification(Notification (src)  notification, java.lang.Object handback)
          Callback method from the broadcaster MBean this listener implementation is registered to.
 void setMessageTemplate(java.lang.String messageTemplate)
           
 
Methods inherited from class org.jboss.monitor.alerts.JBossAlertListener (src)
getAlertName, setAlertName
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
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.monitor.alerts.JBossAlertListenerMBean (src)
getAlertName, setAlertName
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

messageTemplate

protected java.lang.String messageTemplate
Constructor Detail

ConsoleAlertListener

public ConsoleAlertListener()
Method Detail

handleNotification

public void handleNotification(Notification (src)  notification,
                               java.lang.Object handback)
Description copied from interface: NotificationListener (src)
Callback method from the broadcaster MBean this listener implementation is registered to.

Specified by:
handleNotification in interface NotificationListener (src)
Parameters:
notification - the notification object
handback - the handback object given to the broadcaster upon listener registration

getMessageTemplate

public java.lang.String getMessageTemplate()
Specified by:
getMessageTemplate in interface ConsoleAlertListenerMBean (src)

setMessageTemplate

public void setMessageTemplate(java.lang.String messageTemplate)
Specified by:
setMessageTemplate in interface ConsoleAlertListenerMBean (src)