org.objectweb.jonas.mejb
Class ListenerRegistrationImpl

java.lang.Object
  extended by org.objectweb.jonas.mejb.ListenerRegistrationImpl
All Implemented Interfaces:
Serializable, ListenerRegistration

public class ListenerRegistrationImpl
extends Object
implements ListenerRegistration

ListenerRegistration implementation.

See Also:
Serialized Form

Constructor Summary
ListenerRegistrationImpl(JMXServiceURL[] urls)
          A ListenerRegistration object allows to ad/remove listeners to notifications emitted by MBeans which are registred in a remote MBeanServer
 
Method Summary
 void addNotificationListener(ObjectName arg0, NotificationListener arg1, NotificationFilter arg2, Object arg3)
          Add notification listener
 void removeNotificationListener(ObjectName arg0, NotificationListener arg1)
          Remove notification listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerRegistrationImpl

public ListenerRegistrationImpl(JMXServiceURL[] urls)
A ListenerRegistration object allows to ad/remove listeners to notifications emitted by MBeans which are registred in a remote MBeanServer

Parameters:
urls - the remote MBean server url(s) allowing to connect to this server
Method Detail

addNotificationListener

public void addNotificationListener(ObjectName arg0,
                                    NotificationListener arg1,
                                    NotificationFilter arg2,
                                    Object arg3)
                             throws InstanceNotFoundException,
                                    RemoteException
Add notification listener

Specified by:
addNotificationListener in interface ListenerRegistration
Parameters:
arg0 - identifies the emitter MBean
arg1 - the listener to add
arg2 - the associated filter
arg3 - the associated handback object
Throws:
InstanceNotFoundException - emitter MBean not registered in the MBeanServer
RemoteException - operation failed

removeNotificationListener

public void removeNotificationListener(ObjectName arg0,
                                       NotificationListener arg1)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException,
                                       RemoteException
Remove notification listener

Specified by:
removeNotificationListener in interface ListenerRegistration
Parameters:
arg0 - identifies the emitter MBean
arg1 - the listener to remove
Throws:
InstanceNotFoundException - emitter MBean not registered in the MBeanServer
ListenerNotFoundException - arg1 not registered as listener
RemoteException - operation failed


Copyright © 2007 OW2 Consortium. All Rights Reserved.