com.caucho.management.server
Class AbstractNotificationObject

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.management.server.AbstractNotificationObject
All Implemented Interfaces:
ManagedObjectMXBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter

public abstract class AbstractNotificationObject
extends AbstractManagedObject
implements javax.management.NotificationEmitter

Parent mbean of all Resin's managed objects.


Constructor Summary
protected AbstractNotificationObject()
           
protected AbstractNotificationObject(java.lang.ClassLoader loader)
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
          Adds a new listener
protected  void handleNotification(javax.management.NotificationListener listener, javax.management.Notification notif, java.lang.Object handback)
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void sendNotification(javax.management.Notification notification)
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getName, getObjectName, getType, registerSelf, toString, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.NotificationBroadcaster
getNotificationInfo
 

Constructor Detail

AbstractNotificationObject

protected AbstractNotificationObject()

AbstractNotificationObject

protected AbstractNotificationObject(java.lang.ClassLoader loader)
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
Adds a new listener

Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
javax.management.ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
Throws:
javax.management.ListenerNotFoundException

handleNotification

protected void handleNotification(javax.management.NotificationListener listener,
                                  javax.management.Notification notif,
                                  java.lang.Object handback)

sendNotification

public void sendNotification(javax.management.Notification notification)