javax.management
Class MBeanServerDelegate

java.lang.Object
  extended byjavax.management.MBeanServerDelegate
All Implemented Interfaces:
MBeanServerDelegateMBean (src) , NotificationBroadcaster (src) , NotificationEmitter (src)
Direct Known Subclasses:
TestMBeanServerDelegate (src)

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

Mandatory MBean server delegate MBean implementation.

See Also:
MBeanServerDelegateMBean (src)

Constructor Summary
MBeanServerDelegate()
           
 
Method Summary
 void addNotificationListener(NotificationListener (src)  listener, NotificationFilter (src)  filter, java.lang.Object handback)
          Add a listener to an MBean.
 java.lang.String getImplementationName()
           
 java.lang.String getImplementationVendor()
           
 java.lang.String getImplementationVersion()
           
 java.lang.String getMBeanServerId()
           
 MBeanNotificationInfo (src) [] getNotificationInfo()
          Returns the notification metadata associated with the MBean.
 java.lang.String getSpecificationName()
           
 java.lang.String getSpecificationVendor()
           
 java.lang.String getSpecificationVersion()
           
 void removeNotificationListener(NotificationListener (src)  listener)
          Removes a listener from an MBean.
 void removeNotificationListener(NotificationListener (src)  listener, NotificationFilter (src)  filter, java.lang.Object handback)
          Removes a listener from the Emitter.
 void sendNotification(Notification (src)  notification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanServerDelegate

public MBeanServerDelegate()
Method Detail

getMBeanServerId

public java.lang.String getMBeanServerId()
Specified by:
getMBeanServerId in interface MBeanServerDelegateMBean (src)

getSpecificationName

public java.lang.String getSpecificationName()
Specified by:
getSpecificationName in interface MBeanServerDelegateMBean (src)

getSpecificationVersion

public java.lang.String getSpecificationVersion()
Specified by:
getSpecificationVersion in interface MBeanServerDelegateMBean (src)

getSpecificationVendor

public java.lang.String getSpecificationVendor()
Specified by:
getSpecificationVendor in interface MBeanServerDelegateMBean (src)

getImplementationName

public java.lang.String getImplementationName()
Specified by:
getImplementationName in interface MBeanServerDelegateMBean (src)

getImplementationVersion

public java.lang.String getImplementationVersion()
Specified by:
getImplementationVersion in interface MBeanServerDelegateMBean (src)

getImplementationVendor

public java.lang.String getImplementationVendor()
Specified by:
getImplementationVendor in interface MBeanServerDelegateMBean (src)

getNotificationInfo

public MBeanNotificationInfo (src) [] getNotificationInfo()
Description copied from interface: NotificationBroadcaster (src)
Returns the notification metadata associated with the MBean.

Specified by:
getNotificationInfo in interface NotificationBroadcaster (src)
Returns:
MBean's notification metadata
See Also:
MBeanNotificationInfo (src)

addNotificationListener

public void addNotificationListener(NotificationListener (src)  listener,
                                    NotificationFilter (src)  filter,
                                    java.lang.Object handback)
                             throws java.lang.IllegalArgumentException
Description copied from interface: NotificationBroadcaster (src)
Add a listener to an MBean.

Specified by:
addNotificationListener in interface NotificationBroadcaster (src)
Parameters:
listener - implementation of the listener object
filter - implementation of the filter object or null if no filtering is required
handback - A handback object associated with each notification sent by this notification broadcaster.
Throws:
java.lang.IllegalArgumentException - if listener is null

removeNotificationListener

public void removeNotificationListener(NotificationListener (src)  listener,
                                       NotificationFilter (src)  filter,
                                       java.lang.Object handback)
                                throws ListenerNotFoundException (src) 
Description copied from interface: NotificationEmitter (src)
Removes a listener from the Emitter.

Only the listener, filter, handback triplet is removed

Specified by:
removeNotificationListener in interface NotificationEmitter (src)
Parameters:
listener - the listener object to remove
filter - the filter registered with the listener
handback - the handback object associated with the registered listener
Throws:
ListenerNotFoundException (src) - if the listener was not found

removeNotificationListener

public void removeNotificationListener(NotificationListener (src)  listener)
                                throws ListenerNotFoundException (src) 
Description copied from interface: NotificationBroadcaster (src)
Removes a listener from an MBean.

Specified by:
removeNotificationListener in interface NotificationBroadcaster (src)
Parameters:
listener - the listener object to remove
Throws:
ListenerNotFoundException (src) - if the listener was not found

sendNotification

public void sendNotification(Notification (src)  notification)