java.lang.Object
javax.management.MBeanServerDelegate
- All Implemented Interfaces:
- MBeanServerDelegateMBean,- NotificationBroadcaster,- NotificationEmitter
public class MBeanServerDelegate
extends Object
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.
- Since:
- 1.5
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ObjectNameDefines the default ObjectName of the MBeanServerDelegate.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Adds a listener to this MBean.Returns the JMX implementation name (the name of this product).Returns the JMX implementation vendor (the vendor of this product).Returns the JMX implementation version (the version of this product).Returns the MBean server agent identity.Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.Returns the full name of the JMX specification implemented by this product.Returns the vendor of the JMX specification implemented by this product.Returns the version of the JMX specification implemented by this product.voidRemoves a listener from this MBean.voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from this MBean.voidsendNotification(Notification notification) Enables the MBean server to send a notification.
- 
Field Details- 
DELEGATE_NAMEDefines the default ObjectName of the MBeanServerDelegate.- Since:
- 1.6
 
 
- 
- 
Constructor Details- 
MBeanServerDelegatepublic MBeanServerDelegate()Create a MBeanServerDelegate object.
 
- 
- 
Method Details- 
getMBeanServerIdReturns the MBean server agent identity.- Specified by:
- getMBeanServerIdin interface- MBeanServerDelegateMBean
- Returns:
- the identity.
 
- 
getSpecificationNameReturns the full name of the JMX specification implemented by this product.- Specified by:
- getSpecificationNamein interface- MBeanServerDelegateMBean
- Returns:
- the specification name.
 
- 
getSpecificationVersionReturns the version of the JMX specification implemented by this product.- Specified by:
- getSpecificationVersionin interface- MBeanServerDelegateMBean
- Returns:
- the specification version.
 
- 
getSpecificationVendorReturns the vendor of the JMX specification implemented by this product.- Specified by:
- getSpecificationVendorin interface- MBeanServerDelegateMBean
- Returns:
- the specification vendor.
 
- 
getImplementationNameReturns the JMX implementation name (the name of this product).- Specified by:
- getImplementationNamein interface- MBeanServerDelegateMBean
- Returns:
- the implementation name.
 
- 
getImplementationVersionReturns the JMX implementation version (the version of this product).- Specified by:
- getImplementationVersionin interface- MBeanServerDelegateMBean
- Returns:
- the implementation version.
 
- 
getImplementationVendorReturns the JMX implementation vendor (the vendor of this product).- Specified by:
- getImplementationVendorin interface- MBeanServerDelegateMBean
- Returns:
- the implementation vendor.
 
- 
getNotificationInfoDescription copied from interface: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. - Specified by:
- getNotificationInfoin interface- NotificationBroadcaster
- Returns:
- the array of possible notifications.
 
- 
addNotificationListenerpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException Description copied from interface:NotificationBroadcasterAdds a listener to this MBean.- Specified by:
- addNotificationListenerin interface- NotificationBroadcaster
- Parameters:
- listener- 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.
- Throws:
- IllegalArgumentException- Listener parameter is null.
- See Also:
 
- 
removeNotificationListenerpublic void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException Description copied from interface:NotificationEmitterRemoves 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:
- removeNotificationListenerin interface- NotificationEmitter
- Parameters:
- listener- 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.
- Throws:
- ListenerNotFoundException- The listener is not registered with the MBean, or it is not registered with the given filter and handback.
 
- 
removeNotificationListenerpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException Description copied from interface:NotificationBroadcasterRemoves 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:
- removeNotificationListenerin interface- NotificationBroadcaster
- Parameters:
- listener- A listener that was previously added to this MBean.
- Throws:
- ListenerNotFoundException- The listener is not registered with the MBean.
- See Also:
 
- 
sendNotificationEnables 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.- Parameters:
- notification- The notification to send.
 
 
-