javax.management
Class MBeanServerDelegate

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

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

Represents the MBeanServer from the management point of view. The MBeanServerDelegate MBean emits the MBeanServerNotifications when a MBean is registered/deregistered in the MBean server.


Inner Class Summary
(package private)  class MBeanServerDelegate.NotificationHandler
           
 
Constructor Summary
MBeanServerDelegate()
          Create a MBeanServerDelegate object.
 
Method Summary
(package private) static void ()
           
 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 getImplementationName()
          Returns the JMX implementation name (the name of this product).
 java.lang.String getImplementationVendor()
          Returns the JMX implementation vendor (the vendor of this product).
 java.lang.String getImplementationVersion()
          Returns the JMX implementation version (the version of this product).
 java.lang.String getMBeanServerId()
          Get the MBeanServer agent identification.
 MBeanNotificationInfo[] getNotificationInfo()
          Returns a NotificationInfo object contaning the name of the Java class of the notification and the notification types sent.
 java.lang.String getSpecificationName()
          Returns full name of the JMX specification implemented by this product.
 java.lang.String getSpecificationVendor()
          Returns the vendor of the JMX specification implemented by this product.
 java.lang.String getSpecificationVersion()
          Returns the version of the JMX specification implemented by this product.
 void removeNotificationListener(NotificationListener listener)
          Enables a listener for an MBean to be removed.
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
          Enables a specific listener for an MBean to be removed, which matches all the arguments like, listener, filter and handback.
 void sendNotification(Notification notification)
          Enables the MBean server to send a notification.
 
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

static void ()

getImplementationName

public java.lang.String getImplementationName()
Returns the JMX implementation name (the name of this product).
Specified by:
getImplementationName in interface MBeanServerDelegateMBean
Returns:
The JMX implementation name is returned

getImplementationVendor

public java.lang.String getImplementationVendor()
Returns the JMX implementation vendor (the vendor of this product).
Specified by:
getImplementationVendor in interface MBeanServerDelegateMBean
Returns:
The JMX implementation vendor is returned

getImplementationVersion

public java.lang.String getImplementationVersion()
Returns the JMX implementation version (the version of this product).
Specified by:
getImplementationVersion in interface MBeanServerDelegateMBean
Returns:
The JMX implementation version is returned

getMBeanServerId

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

getSpecificationName

public java.lang.String getSpecificationName()
Returns full name of the JMX specification implemented by this product.
Specified by:
getSpecificationName in interface MBeanServerDelegateMBean
Returns:
The name of the JMX specification implemented by this product is returned

getSpecificationVendor

public java.lang.String getSpecificationVendor()
Returns the vendor of the JMX specification implemented by this product.
Specified by:
getSpecificationVendor in interface MBeanServerDelegateMBean
Returns:
This returns the vendor of the JMX specification implemented by this product

getSpecificationVersion

public java.lang.String getSpecificationVersion()
Returns the version of the JMX specification implemented by this product.
Specified by:
getSpecificationVersion in interface MBeanServerDelegateMBean
Returns:
The version of the JMX specification implemented by this product is returned

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
listener - 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.

removeNotificationListener

public void removeNotificationListener(NotificationListener listener,
                                       NotificationFilter filter,
                                       java.lang.Object handback)
                                throws ListenerNotFoundException
Enables a specific listener for an MBean to be removed, which matches all the arguments like, listener, filter and handback. Specified by: removeNotificationListener in interface NotificationEmitter
Specified by:
removeNotificationListener in interface NotificationEmitter
Parameters:
listener - The listener object which will handles notifications emitted by the registered MBean.
filter - The filter that was specified when the listener was added.
handback - The handback that was specified when listener was added.
Throws:
ListenerNotFoundException - 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.
Returns:
This returns the array of MBeanNotificationInfo which contains the notification information

sendNotification

public void sendNotification(Notification notification)
Enables the MBean server to send a notification.
Parameters:
notif - The notification to send.