|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.MBeanServerDelegate
public class MBeanServerDelegate
Provides an implementation of a delegate bean, which is associated with a management server. The delegate bean is responsible for providing metadata about the server and handling the registration and deregistration notifications.
| Constructor Summary | |
|---|---|
MBeanServerDelegate()
Default constructor which generates the id. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanServerDelegate()
| Method Detail |
|---|
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object passback)
throws 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.
IllegalArgumentException - if listener is
null.removeNotificationListener(NotificationListener)public String getImplementationName()
getImplementationName in interface MBeanServerDelegateMBeanpublic String getImplementationVendor()
getImplementationVendor in interface MBeanServerDelegateMBeanpublic String getImplementationVersion()
getImplementationVersion in interface MBeanServerDelegateMBeanpublic String getMBeanServerId()
getMBeanServerId in interface MBeanServerDelegateMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterpublic String getSpecificationName()
getSpecificationName in interface MBeanServerDelegateMBeanpublic String getSpecificationVendor()
getSpecificationVendor in interface MBeanServerDelegateMBeanpublic String getSpecificationVersion()
getSpecificationVersion in interface MBeanServerDelegateMBean
public 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,
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||