public class MBeanServerDelegate extends java.lang.Object implements MBeanServerDelegateMBean, NotificationEmitter
| Constructor and Description |
|---|
MBeanServerDelegate()
Default constructor which generates the id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object passback)
Registers the specified listener as a new recipient of
notifications from the delegate.
|
java.lang.String |
getImplementationName()
Returns the name of this Java Management eXtensions (JMX) implementation.
|
java.lang.String |
getImplementationVendor()
Returns the vendor of this Java Management eXtensions (JMX) implementation.
|
java.lang.String |
getImplementationVersion()
Returns the version of this Java Management eXtensions (JMX) implementation.
|
java.lang.String |
getMBeanServerId()
Returns the unique identifier for this management server.
|
MBeanNotificationInfo[] |
getNotificationInfo()
Returns an array describing the notifications this
bean may send to its registered listeners.
|
java.lang.String |
getSpecificationName()
Returns the name of this Java Management eXtensions (JMX) specification.
|
java.lang.String |
getSpecificationVendor()
Returns the vendor of this Java Management eXtensions (JMX) specification.
|
java.lang.String |
getSpecificationVersion()
Returns the version of this Java Management eXtensions (JMX) specification.
|
void |
removeNotificationListener(NotificationListener listener)
Removes the specified listener from the list of recipients
of notifications from this bean.
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object passback)
Removes the specified listener from the list of recipients
of notifications from this delegate.
|
void |
sendNotification(Notification notification)
Allows the server to use the delegate to send a notification.
|
public MBeanServerDelegate()
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object passback) throws java.lang.IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterlistener - the new listener, who will receive
notifications from this broadcasting bean.filter - a filter to determine which notifications are
delivered to the listener, or null
if no filtering is required.passback - an object to be passed to the listener with
each notification.java.lang.IllegalArgumentException - if listener is
null.removeNotificationListener(NotificationListener)public java.lang.String getImplementationName()
getImplementationName in interface MBeanServerDelegateMBeanpublic java.lang.String getImplementationVendor()
getImplementationVendor in interface MBeanServerDelegateMBeanpublic java.lang.String getImplementationVersion()
getImplementationVersion in interface MBeanServerDelegateMBeanpublic java.lang.String getMBeanServerId()
getMBeanServerId in interface MBeanServerDelegateMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterpublic java.lang.String getSpecificationName()
getSpecificationName in interface MBeanServerDelegateMBeanpublic java.lang.String getSpecificationVendor()
getSpecificationVendor in interface MBeanServerDelegateMBeanpublic java.lang.String getSpecificationVersion()
getSpecificationVersion in interface MBeanServerDelegateMBeanpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener(NotificationListener,
NotificationFilter, java.lang.Object)removeNotificationListener in interface NotificationBroadcasterlistener - the listener to remove.ListenerNotFoundException - if the specified listener
is not registered with this bean.addNotificationListener(NotificationListener, NotificationFilter,
java.lang.Object)public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object passback) throws ListenerNotFoundException
null is used as a valid value for these parameters,
rather than as a way to remove all registration instances for
the specified listener; for this behaviour instead, see
removeNotificationListener(NotificationListener).removeNotificationListener in interface NotificationEmitterlistener - the listener to remove.filter - the filter of the listener to remove.passback - the passback object of the listener to remove.ListenerNotFoundException - if the specified listener
is not registered with this bean.addNotificationListener(NotificationListener, NotificationFilter,
java.lang.Object),
removeNotificationListener(NotificationListener)public void sendNotification(Notification notification)
notification - the notification to send.