javax.management
public class MBeanServerDelegate extends 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,
Object passback)
Registers the specified listener as a new recipient of
notifications from the delegate.
|
String |
getImplementationName()
Returns the name of this Java Management eXtensions (JMX) implementation.
|
String |
getImplementationVendor()
Returns the vendor of this Java Management eXtensions (JMX) implementation.
|
String |
getImplementationVersion()
Returns the version of this Java Management eXtensions (JMX) implementation.
|
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.
|
String |
getSpecificationName()
Returns the name of this Java Management eXtensions (JMX) specification.
|
String |
getSpecificationVendor()
Returns the vendor of this Java Management eXtensions (JMX) specification.
|
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,
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, Object passback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
listener
- 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.IllegalArgumentException
- if listener
is
null
.removeNotificationListener(NotificationListener)
public String getImplementationName()
getImplementationName
in interface MBeanServerDelegateMBean
public String getImplementationVendor()
getImplementationVendor
in interface MBeanServerDelegateMBean
public String getImplementationVersion()
getImplementationVersion
in interface MBeanServerDelegateMBean
public String getMBeanServerId()
getMBeanServerId
in interface MBeanServerDelegateMBean
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public String getSpecificationName()
getSpecificationName
in interface MBeanServerDelegateMBean
public String getSpecificationVendor()
getSpecificationVendor
in interface MBeanServerDelegateMBean
public String getSpecificationVersion()
getSpecificationVersion
in interface MBeanServerDelegateMBean
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener(NotificationListener,
NotificationFilter, java.lang.Object)
removeNotificationListener
in interface NotificationBroadcaster
listener
- 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, 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 NotificationEmitter
listener
- 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.