org.jboss.mx.remoting
Class MBeanNotificationCache

java.lang.Object
  extended byorg.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.


Constructor Summary
MBeanNotificationCache(ServerInvoker (src)  invoker, MBeanServer (src)  server)
           
 
Method Summary
 void addNotificationListener(InvokerLocator (src)  clientLocator, java.lang.String sessionId, ObjectName (src)  objectName, NotificationFilter (src)  filter, java.lang.Object handback)
           
 void destroy()
           
 NotificationQueue (src) getNotifications(java.lang.String sessionId)
          pull notifications for a given sessionId and return the queue or null if none pending
 void handleNotification(Notification (src)  notification, java.lang.Object o)
          Callback method from the broadcaster MBean this listener implementation is registered to.
 void removeNotificationListener(InvokerLocator (src)  clientLocator, java.lang.String sessionId, ObjectName (src)  objectName, java.lang.Object handback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanNotificationCache

public MBeanNotificationCache(ServerInvoker (src)  invoker,
                              MBeanServer (src)  server)
                       throws java.lang.Exception
Method Detail

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 object
o - 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: