com.adventnet.adaptors.clients.http
Class ClientNotificationBroadcaster

java.lang.Object
  extended by com.adventnet.adaptors.clients.http.ClientNotificationBroadcaster
All Implemented Interfaces:
javax.management.NotificationBroadcaster

 class ClientNotificationBroadcaster
extends java.lang.Object
implements javax.management.NotificationBroadcaster


Nested Class Summary
(package private)  class ClientNotificationBroadcaster.NotificationHandler
           
(package private)  class ClientNotificationBroadcaster.NotificationThread
           
 
Field Summary
(package private) static java.lang.String HAND_BACK
           
 
Constructor Summary
ClientNotificationBroadcaster()
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
          Enables a couple (listener,handback) for a registered MBean to be added.
 void addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
          Returns a NotificationInfo object contaning the name of the Java class of the notification and the notification types sent.
 void removeNotificationListener(javax.management.NotificationListener listener)
          Enables a listener for an MBean to be removed.
 void sendNotification(javax.management.Notification notif)
          Enables a MBean to send a notification.
 void sendNotification(javax.management.ObjectName name, javax.management.Notification notif)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HAND_BACK

static java.lang.String HAND_BACK
Constructor Detail

ClientNotificationBroadcaster

public ClientNotificationBroadcaster()
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.ObjectName name,
                                    javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws java.lang.IllegalArgumentException
Enables a couple (listener,handback) for a registered MBean to be added.

Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
Parameters:
listener - The listener object which will handles notifications emitted by the registered MBean.
filter - The filter object. If not specified, no filtering will be performed before
handling - notifications.
handback - The context to be sent to the listener when a notification is emitted.
Throws:
java.lang.IllegalArgumentException - - Listener parameter is null.

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Enables a listener for an MBean to be removed. All couple (listener, handback) are removed.

Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Parameters:
listener - The listener object which will handles notifications emitted by the registered MBean.
Throws:
javax.management.ListenerNotFoundException - The listener is not registered in the MBean.

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Returns a NotificationInfo object contaning the name of the Java class of the notification and the notification types sent.

Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster
Returns:
a NotificationInfo object contaning the name of the Java class of the notification and the notification types sent.

sendNotification

public void sendNotification(javax.management.ObjectName name,
                             javax.management.Notification notif)

sendNotification

public void sendNotification(javax.management.Notification notif)
Enables a MBean to send a notification.

Parameters:
notification - The notification to send.