com.sun.jdmk
Interface NotificationBroadcasterProxy


Deprecated. MBean proxies should be generated using MBeanServerInvocationHandler.newProxyInstance. The interface NotificationBroadcasterProxy may be removed in a future version of Java DMK.

public interface NotificationBroadcasterProxy

This interface should be implemented by a ProxyMBean that represents an MBean which broadcasts Notifications (implements the NotificationBroadcaster interface). It allows a listener to be registered within the ProxyMBean as a notifications listener.


Method Summary
 void addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
          Deprecated. Enables to add a listener to a registered MBean.
 void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)
          Deprecated. Enables to remove a listener from a registered MBean.
 

Method Detail

addNotificationListener

void addNotificationListener(javax.management.ObjectName name,
                             javax.management.NotificationListener listener,
                             javax.management.NotificationFilter filter,
                             java.lang.Object handback)
                             throws javax.management.InstanceNotFoundException
Deprecated. 
Enables to add a listener to a registered MBean.

Parameters:
name - The name of the MBean on which the listener should be added.
listener - The listener object which will handle the notifications emitted by the registered MBean.
filter - The filter object. If filter is null, no filtering will be performed before handling notifications.
handback - The context to be sent to the listener when a notification is emitted.
Throws:
javax.management.InstanceNotFoundException - The MBean name provided does not match any of the registered MBeans.

removeNotificationListener

void removeNotificationListener(javax.management.ObjectName name,
                                javax.management.NotificationListener listener)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException
Deprecated. 
Enables to remove a listener from a registered MBean.

Parameters:
name - The name of the MBean on which the listener should be removed.
listener - The listener object which will handle the notifications emitted by the registered MBean. This method will remove all the information related to this listener.
Throws:
javax.management.InstanceNotFoundException - The MBean name provided does not match any of the registered MBeans.
javax.management.ListenerNotFoundException - The listener is not registered in the MBean.

Open Source build 01-ea
opendmk-1.0-b01-ea 2010.10.20_19:39:55_UTC

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.