Class: javax.management.MBeanServerDelegate
- public class MBeanServerDelegate
- implements MBeanServerDelegateMBean, NotificationEmitter
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.
Methods
-
MBeanServerDelegatetop
public MBeanServerDelegate()Create a MBeanServerDelegate object. -
addNotificationListenertop
public synchronized void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentExceptionAdds a listener to this MBean.- Specified by:
- addNotificationListener from NotificationBroadcaster
-
getImplementationNametop
public String getImplementationName()Returns the JMX implementation name (the name of this product).- Specified by:
- getImplementationName from MBeanServerDelegateMBean
-
getImplementationVendortop
public String getImplementationVendor()Returns the JMX implementation vendor (the vendor of this product).- Specified by:
- getImplementationVendor from MBeanServerDelegateMBean
-
getImplementationVersiontop
public String getImplementationVersion()Returns the JMX implementation version (the version of this product).- Specified by:
- getImplementationVersion from MBeanServerDelegateMBean
-
getMBeanServerIdtop
public synchronized String getMBeanServerId()Returns the MBean server agent identity.- Specified by:
- getMBeanServerId from MBeanServerDelegateMBean
-
getNotificationInfotop
public 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.
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.
- Specified by:
- getNotificationInfo from NotificationBroadcaster
-
getSpecificationNametop
public String getSpecificationName()Returns the full name of the JMX specification implemented by this product.- Specified by:
- getSpecificationName from MBeanServerDelegateMBean
-
getSpecificationVendortop
public String getSpecificationVendor()Returns the vendor of the JMX specification implemented by this product.- Specified by:
- getSpecificationVendor from MBeanServerDelegateMBean
-
getSpecificationVersiontop
public String getSpecificationVersion()Returns the version of the JMX specification implemented by this product.- Specified by:
- getSpecificationVersion from MBeanServerDelegateMBean
-
removeNotificationListenertop
public synchronized void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundExceptionRemoves a listener from this MBean. If the listener has been registered with different handback objects or notification filters, all entries corresponding to the listener will be removed.- Specified by:
- removeNotificationListener from NotificationBroadcaster
-
removeNotificationListenertop
public synchronized void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundExceptionRemoves a listener from this MBean. The MBean must have a listener that exactly matches the given
listener,filter, andhandbackparameters. If there is more than one such listener, only one is removed.The
filterandhandbackparameters may be null if and only if they are null in a listener to be removed.- Specified by:
- removeNotificationListener from NotificationEmitter
-
sendNotificationtop
public void sendNotification(Notification notification)Enables the MBean server to send a notification. If the passed notification has a sequence number lesser or equal to 0, then replace it with the delegate's own sequence number.
Fields
-
DELEGATE_NAME
public static final ObjectName DELEGATE_NAMEDefines the default ObjectName of the MBeanServerDelegate.
