org.jboss.mx.remoting
Class MBeanNotificationCache

java.lang.Object
  extended by org.jboss.mx.remoting.MBeanNotificationCache
All Implemented Interfaces:
EventListener, NotificationListener

public class MBeanNotificationCache
extends Object
implements NotificationListener

MBeanNotificationCache is an object that queues all the server side JMX notifications on behalf of a client invoker.

Version:
$Revision: 81023 $
Author:
Jeff Haynie

Constructor Summary
MBeanNotificationCache(org.jboss.remoting.ServerInvoker invoker, MBeanServer server)
           
 
Method Summary
 void addNotificationListener(org.jboss.remoting.InvokerLocator clientLocator, String sessionId, ObjectName objectName, NotificationFilter filter, Object handback)
           
 void destroy()
           
 NotificationQueue getNotifications(String sessionId)
          pull notifications for a given sessionId and return the queue or null if none pending
 void handleNotification(Notification notification, Object o)
           
 void removeNotificationListener(org.jboss.remoting.InvokerLocator clientLocator, String sessionId, ObjectName objectName, 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(org.jboss.remoting.ServerInvoker invoker,
                              MBeanServer server)
                       throws Exception
Throws:
Exception
Method Detail

handleNotification

public void handleNotification(Notification notification,
                               Object o)
Specified by:
handleNotification in interface NotificationListener

destroy

public void destroy()

addNotificationListener

public void addNotificationListener(org.jboss.remoting.InvokerLocator clientLocator,
                                    String sessionId,
                                    ObjectName objectName,
                                    NotificationFilter filter,
                                    Object handback)
                             throws InstanceNotFoundException
Throws:
InstanceNotFoundException

removeNotificationListener

public void removeNotificationListener(org.jboss.remoting.InvokerLocator clientLocator,
                                       String sessionId,
                                       ObjectName objectName,
                                       Object handback)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException
Throws:
InstanceNotFoundException
ListenerNotFoundException

getNotifications

public NotificationQueue getNotifications(String sessionId)
pull notifications for a given sessionId and return the queue or null if none pending

Parameters:
sessionId -
Returns:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.