|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.util.jmx.NotificationListenerBase
com.sun.appserv.management.util.jmx.MBeanRegistrationListener
public abstract class MBeanRegistrationListener
Convenience base class for listening to
MBeanServerNotification notifications.
A class extending this class must implement mbeanRegistered(javax.management.ObjectName)
and mbeanUnregistered(javax.management.ObjectName).
The class is designed to start listening upon creation. The caller should call cleanup() when listening is no longer desired. Once cleanup() is called, no further listening can be done; a new MBeanRegistrationListener should be instantiated if further listening is desired.
| Constructor Summary | |
|---|---|
MBeanRegistrationListener(MBeanServerConnection conn)
Calls this( conn, null ). |
|
MBeanRegistrationListener(MBeanServerConnection conn,
ObjectName constrain)
If 'constrain' is non-null, then all registration and unregistration events will be filtered through it. |
|
| Method Summary | |
|---|---|
void |
handleNotification(Notification notifIn,
Object handback)
Subclass should implement this routine. |
protected abstract void |
mbeanRegistered(ObjectName objectName)
|
protected abstract void |
mbeanUnregistered(ObjectName objectName)
|
| Methods inherited from class com.sun.appserv.management.util.jmx.NotificationListenerBase |
|---|
checkAlive, cleanup, getConn, getListenees, getMBeanServerConnection, getNotificationFilter, isAlive, listenToIfMatch, listenToMBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanRegistrationListener(MBeanServerConnection conn,
ObjectName constrain)
throws InstanceNotFoundException,
IOException
mbeanRegistered(javax.management.ObjectName)
and mbeanUnregistered(javax.management.ObjectName).
conn - constrain - optional fixed or pattern ObjectName
InstanceNotFoundException
IOException
public MBeanRegistrationListener(MBeanServerConnection conn)
throws InstanceNotFoundException,
IOException
conn -
InstanceNotFoundException
IOException| Method Detail |
|---|
protected abstract void mbeanRegistered(ObjectName objectName)
protected abstract void mbeanUnregistered(ObjectName objectName)
public void handleNotification(Notification notifIn,
Object handback)
NotificationListenerBase
handleNotification in interface NotificationListenerhandleNotification in class NotificationListenerBase
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.