|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.MBeanServerDelegate
public class MBeanServerDelegate
Represents the MBean server from the management point of view. The MBeanServerDelegate MBean emits the MBeanServerNotifications when an MBean is registered/unregistered in the MBean server.
| Field Summary | |
|---|---|
static ObjectName |
DELEGATE_NAME
Defines the default ObjectName of the MBeanServerDelegate. |
| Constructor Summary | |
|---|---|
MBeanServerDelegate()
Create a MBeanServerDelegate object. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Adds a listener to this MBean. |
String |
getImplementationName()
Returns the JMX implementation name (the name of this product). |
String |
getImplementationVendor()
Returns the JMX implementation vendor (the vendor of this product). |
String |
getImplementationVersion()
Returns the JMX implementation version (the version of this product). |
String |
getMBeanServerId()
Returns the MBean server agent identity. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type. |
String |
getSpecificationName()
Returns the full name of the JMX specification implemented by this product. |
String |
getSpecificationVendor()
Returns the vendor of the JMX specification implemented by this product. |
String |
getSpecificationVersion()
Returns the version of the JMX specification implemented by this product. |
void |
removeNotificationListener(NotificationListener listener)
Removes a listener from this MBean. |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Removes a listener from this MBean. |
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 |
| Field Detail |
|---|
public static final ObjectName DELEGATE_NAME
| Constructor Detail |
|---|
public MBeanServerDelegate()
| Method Detail |
|---|
public String getMBeanServerId()
getMBeanServerId in interface MBeanServerDelegateMBeanpublic String getSpecificationName()
getSpecificationName in interface MBeanServerDelegateMBeanpublic String getSpecificationVersion()
getSpecificationVersion in interface MBeanServerDelegateMBeanpublic String getSpecificationVendor()
getSpecificationVendor in interface MBeanServerDelegateMBeanpublic String getImplementationName()
getImplementationName in interface MBeanServerDelegateMBeanpublic String getImplementationVersion()
getImplementationVersion in interface MBeanServerDelegateMBeanpublic String getImplementationVendor()
getImplementationVendor in interface MBeanServerDelegateMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcasterReturns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.
It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.
getNotificationInfo in interface NotificationBroadcaster
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
NotificationBroadcaster
addNotificationListener in interface NotificationBroadcasterlistener - The listener object which will handle the
notifications emitted by the broadcaster.filter - The filter object. If filter is null, no
filtering will be performed before handling notifications.handback - An opaque object to be sent back to the
listener when a notification is emitted. This object cannot be
used by the Notification broadcaster object. It should be
resent unchanged with the notification to the listener.
IllegalArgumentException - Listener parameter is null.NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
NotificationEmitterRemoves a listener from this MBean. The MBean must have a
listener that exactly matches the given listener,
filter, and handback parameters. If
there is more than one such listener, only one is removed.
The filter and handback parameters
may be null if and only if they are null in a listener to be
removed.
removeNotificationListener in interface NotificationEmitterlistener - A listener that was previously added to this
MBean.filter - The filter that was specified when the listener
was added.handback - The handback that was specified when the listener was
added.
ListenerNotFoundException - The listener is not
registered with the MBean, or it is not registered with the
given filter and handback.
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
NotificationBroadcaster
removeNotificationListener in interface NotificationBroadcasterlistener - A listener that was previously added to this
MBean.
ListenerNotFoundException - The listener is not
registered with the MBean.NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object),
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)public void sendNotification(Notification notification)
notification - The notification to send.
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.