org.jboss.mx.remoting
Class MBeanNotificationCache
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanNotificationCache
public MBeanNotificationCache(org.jboss.remoting.ServerInvoker invoker,
MBeanServer server)
throws Exception
- Throws:
Exception
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.