APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

public Class MBeanServerDelegate

extends Object
implements MBeanServerDelegateMBean, NotificationEmitter
Class Inheritance
All Implemented Interfaces
javax.management.NotificationEmitter, javax.management.NotificationBroadcaster, javax.management.MBeanServerDelegateMBean
Known Direct Subclasses
com.sun.jmx.mbeanserver.MBeanServerDelegateImpl
Imports
java.lang.System.Logger.Level, com.sun.jmx.defaults.JmxProperties, .ServiceName, sun.management.Util

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 Summary

Modifier and TypeField and Description
private final NotificationBroadcasterSupport
broadcaster

The NotificationBroadcasterSupport object that sends the notifications

public static final ObjectName
DELEGATE_NAME

Defines the default ObjectName of the MBeanServerDelegate.

private String
mbeanServerId

The MBean server agent identification.

private static final MBeanNotificationInfo[]
private static long
private long
private final long

Constructor Summary

AccessConstructor and Description
public
MBeanServerDelegate()

Create a MBeanServerDelegate object.

Method Summary

Modifier and TypeMethod and Description
public synchronized void
public String

Returns:

the implementation name.
getImplementationName
()

Implements javax.management.MBeanServerDelegateMBean.getImplementationName.

Returns the JMX implementation name (the name of this product).

public String

Returns:

the implementation vendor.
getImplementationVendor
()

Implements javax.management.MBeanServerDelegateMBean.getImplementationVendor.

Returns the JMX implementation vendor (the vendor of this product).

public String

Returns:

the implementation version.
getImplementationVersion
()

Implements javax.management.MBeanServerDelegateMBean.getImplementationVersion.

Returns the JMX implementation version (the version of this product).

public synchronized String

Returns:

the identity.
getMBeanServerId
()

Implements javax.management.MBeanServerDelegateMBean.getMBeanServerId.

Returns the MBean server agent identity.

public MBeanNotificationInfo[]
getNotificationInfo()

Implements javax.management.NotificationBroadcaster.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.

public String

Returns:

the specification name.
getSpecificationName
()

Implements javax.management.MBeanServerDelegateMBean.getSpecificationName.

Returns the full name of the JMX specification implemented by this product.

public String

Returns:

the specification vendor.
getSpecificationVendor
()

Implements javax.management.MBeanServerDelegateMBean.getSpecificationVendor.

Returns the vendor of the JMX specification implemented by this product.

public String

Returns:

the specification version.
getSpecificationVersion
()

Implements javax.management.MBeanServerDelegateMBean.getSpecificationVersion.

Returns the version of the JMX specification implemented by this product.

private static synchronized long
public synchronized void
public synchronized void
public void
sendNotification(Notification
The notification to send.
notification
)

Enables the MBean server to send a notification.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

broadcasterback to summary
private final NotificationBroadcasterSupport broadcaster

The NotificationBroadcasterSupport object that sends the notifications

DELEGATE_NAMEback to summary
public static final ObjectName DELEGATE_NAME

Defines the default ObjectName of the MBeanServerDelegate.

Since
1.6
mbeanServerIdback to summary
private String mbeanServerId

The MBean server agent identification.

notifsInfoback to summary
private static final MBeanNotificationInfo[] notifsInfo
oldStampback to summary
private static long oldStamp
sequenceNumberback to summary
private long sequenceNumber
stampback to summary
private final long stamp

Constructor Detail

MBeanServerDelegateback to summary
public MBeanServerDelegate()

Create a MBeanServerDelegate object.

Method Detail

addNotificationListenerback to summary
public synchronized void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException

Implements javax.management.NotificationBroadcaster.addNotificationListener.

Doc from javax.management.NotificationBroadcaster.addNotificationListener.

Adds a listener to this MBean.

Exceptions
IllegalArgumentException:
Listener parameter is null.
getImplementationNameback to summary
public String getImplementationName()

Implements javax.management.MBeanServerDelegateMBean.getImplementationName.

Returns the JMX implementation name (the name of this product).

Returns:String

the implementation name.

getImplementationVendorback to summary
public String getImplementationVendor()

Implements javax.management.MBeanServerDelegateMBean.getImplementationVendor.

Returns the JMX implementation vendor (the vendor of this product).

Returns:String

the implementation vendor.

getImplementationVersionback to summary
public String getImplementationVersion()

Implements javax.management.MBeanServerDelegateMBean.getImplementationVersion.

Returns the JMX implementation version (the version of this product).

Returns:String

the implementation version.

getMBeanServerIdback to summary
public synchronized String getMBeanServerId()

Implements javax.management.MBeanServerDelegateMBean.getMBeanServerId.

Returns the MBean server agent identity.

Returns:String

the identity.

getNotificationInfoback to summary
public MBeanNotificationInfo[] getNotificationInfo()

Implements javax.management.NotificationBroadcaster.getNotificationInfo.

Doc from javax.management.NotificationBroadcaster.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.

getSpecificationNameback to summary
public String getSpecificationName()

Implements javax.management.MBeanServerDelegateMBean.getSpecificationName.

Returns the full name of the JMX specification implemented by this product.

Returns:String

the specification name.

getSpecificationVendorback to summary
public String getSpecificationVendor()

Implements javax.management.MBeanServerDelegateMBean.getSpecificationVendor.

Returns the vendor of the JMX specification implemented by this product.

Returns:String

the specification vendor.

getSpecificationVersionback to summary
public String getSpecificationVersion()

Implements javax.management.MBeanServerDelegateMBean.getSpecificationVersion.

Returns the version of the JMX specification implemented by this product.

Returns:String

the specification version.

getStampback to summary
private static synchronized long getStamp()
removeNotificationListenerback to summary
public synchronized void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException

Implements javax.management.NotificationEmitter.removeNotificationListener.

Doc from javax.management.NotificationEmitter.removeNotificationListener.

Removes 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.

Exceptions
ListenerNotFoundException:
The listener is not registered with the MBean, or it is not registered with the given filter and handback.
removeNotificationListenerback to summary
public synchronized void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException

Implements javax.management.NotificationBroadcaster.removeNotificationListener.

Doc from javax.management.NotificationBroadcaster.removeNotificationListener.

Removes 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.

Exceptions
ListenerNotFoundException:
The listener is not registered with the MBean.
sendNotificationback to summary
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.

Parameters
notification:Notification

The notification to send.