org.jboss.mx.remoting
Class MBeanNotificationCache
java.lang.Object
org.jboss.mx.remoting.MBeanNotificationCache
- All Implemented Interfaces:
- java.util.EventListener, NotificationListener (src)
- public class MBeanNotificationCache
- extends java.lang.Object
- implements NotificationListener (src)
MBeanNotificationCache is an object that queues all the server side JMX notifications on behalf
of a client invoker.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanNotificationCache
public MBeanNotificationCache(ServerInvoker (src) invoker,
MBeanServer (src) server)
throws java.lang.Exception
handleNotification
public void handleNotification(Notification (src) notification,
java.lang.Object o)
- 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 objecto
- the handback object given to the broadcaster
upon listener registration
destroy
public void destroy()
addNotificationListener
public void addNotificationListener(InvokerLocator (src) clientLocator,
java.lang.String sessionId,
ObjectName (src) objectName,
NotificationFilter (src) filter,
java.lang.Object handback)
throws InstanceNotFoundException (src)
- Throws:
InstanceNotFoundException (src)
removeNotificationListener
public void removeNotificationListener(InvokerLocator (src) clientLocator,
java.lang.String sessionId,
ObjectName (src) objectName,
java.lang.Object handback)
throws InstanceNotFoundException (src) ,
ListenerNotFoundException (src)
- Throws:
InstanceNotFoundException (src)
ListenerNotFoundException (src)
getNotifications
public NotificationQueue (src) getNotifications(java.lang.String sessionId)
- pull notifications for a given sessionId and return the queue or null if none pending
- Parameters:
sessionId
-
- Returns: