javax.management
Class MBeanServerDelegate

java.lang.Object
  |
  +--javax.management.MBeanServerDelegate

public class MBeanServerDelegate
extends java.lang.Object
implements MBeanServerDelegateMBean, NotificationBroadcaster

This class is a MBeanServer representation from the management point of view.


Constructor Summary
MBeanServerDelegate()
          Create a MBeanServerDelegate object.
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
          Enables a couple (listener,handback) for a registered MBean to be added.
 java.lang.String getMBeanServerId()
          Get the MBeanServer agent identification.
 java.lang.String getMBeanServerVersion()
          Get the MBeanServer version.
 MBeanNotificationInfo[] getNotificationInfo()
          Returns a NotificationInfo object contaning the name of the Java class of the notification and the notification types sent.
 void removeNotificationListener(NotificationListener listener)
          Enables a listener for an MBean to be removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanServerDelegate

public MBeanServerDelegate()
Create a MBeanServerDelegate object.
Method Detail

getMBeanServerId

public java.lang.String getMBeanServerId()
Get the MBeanServer agent identification.
Specified by:
getMBeanServerId in interface MBeanServerDelegateMBean
Returns:
The MBeanServer agent identification.

getMBeanServerVersion

public java.lang.String getMBeanServerVersion()
Get the MBeanServer version.
Specified by:
getMBeanServerVersion in interface MBeanServerDelegateMBean
Returns:
The MBeanServer version.

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    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 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(NotificationListener listener)
                                throws ListenerNotFoundException
Enables a listener for an MBean to be removed. All couple (listener, handback) are removed.
Specified by:
removeNotificationListener in interface NotificationBroadcaster
Parameters:
listener - The listener object which will handles notifications emitted by the registered MBean.
Throws:
ListenerNotFoundException - The listener is not registered in the MBean.

getNotificationInfo

public 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 NotificationBroadcaster