MBeanServerDelegate (Java SE 15 & JDK 15) (original) (raw)
All Implemented Interfaces:
[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
, [NotificationBroadcaster](NotificationBroadcaster.html "interface in javax.management")
, [NotificationEmitter](NotificationEmitter.html "interface in javax.management")
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 Summary
Fields
Modifier and Type | Field | Description |
---|---|---|
static ObjectName | DELEGATE_NAME | Defines the default ObjectName of the MBeanServerDelegate. |
Constructor Summary
Constructors
Constructor | Description |
---|---|
MBeanServerDelegate() | Create a MBeanServerDelegate object. |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
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. |
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 | sendNotification​(Notification notification) | Enables the MBean server to send a notification. |
Methods declared in class java.lang.Object
[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)
Field Details
DELEGATE_NAME
public static final ObjectName DELEGATE_NAME
Defines the default ObjectName of the MBeanServerDelegate.
Since:
1.6Constructor Details
MBeanServerDelegate
public MBeanServerDelegate()
Create a MBeanServerDelegate object.Method Details
getMBeanServerId
public String getMBeanServerId()
Returns the MBean server agent identity.
Specified by:
[getMBeanServerId](MBeanServerDelegateMBean.html#getMBeanServerId%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the identity.getSpecificationName
public String getSpecificationName()
Returns the full name of the JMX specification implemented by this product.
Specified by:
[getSpecificationName](MBeanServerDelegateMBean.html#getSpecificationName%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the specification name.getSpecificationVersion
public String getSpecificationVersion()
Returns the version of the JMX specification implemented by this product.
Specified by:
[getSpecificationVersion](MBeanServerDelegateMBean.html#getSpecificationVersion%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the specification version.getSpecificationVendor
public String getSpecificationVendor()
Returns the vendor of the JMX specification implemented by this product.
Specified by:
[getSpecificationVendor](MBeanServerDelegateMBean.html#getSpecificationVendor%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the specification vendor.getImplementationName
public String getImplementationName()
Returns the JMX implementation name (the name of this product).
Specified by:
[getImplementationName](MBeanServerDelegateMBean.html#getImplementationName%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the implementation name.getImplementationVersion
public String getImplementationVersion()
Returns the JMX implementation version (the version of this product).
Specified by:
[getImplementationVersion](MBeanServerDelegateMBean.html#getImplementationVersion%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the implementation version.getImplementationVendor
public String getImplementationVendor()
Returns the JMX implementation vendor (the vendor of this product).
Specified by:
[getImplementationVendor](MBeanServerDelegateMBean.html#getImplementationVendor%28%29)
in interface[MBeanServerDelegateMBean](MBeanServerDelegateMBean.html "interface in javax.management")
Returns:
the implementation vendor.sendNotification
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
- The notification to send.