public class

MBeanServerNotification

extends Notification
java.lang.Object
   ↳ java.util.EventObject
     ↳ javax.management.Notification
       ↳ javax.management.MBeanServerNotification

Class Overview

Represents a notification emitted by the MBean server through the MBeanServerDelegate MBean. The MBean Server emits the following types of notifications: MBean registration, MBean de-registration.

To receive to MBeanServerNotifications, you need to be declared as listener to the javax.management.MBeanServerDelegate MBean that represents the MBeanServer. The ObjectName of the MBeanServerDelegate is: JMImplementation:type=MBeanServerDelegate.

Summary

Constants
String REGISTRATION_NOTIFICATION Notification type denoting that an MBean has been registered.
String UNREGISTRATION_NOTIFICATION Notification type denoting that an MBean has been unregistered.
[Expand]
Inherited Fields
From class javax.management.Notification
From class java.util.EventObject
Public Constructors
MBeanServerNotification(String type, Object source, long sequenceNumber, ObjectName objectName)
Creates an MBeanServerNotification object specifying object names of the MBeans that caused the notification and the specified notification type.
Public Methods
ObjectName getMBeanName()
Returns the object name of the MBean that caused the notification.
[Expand]
Inherited Methods
From class javax.management.Notification
From class java.util.EventObject
From class java.lang.Object

Constants

public static final String REGISTRATION_NOTIFICATION

Notification type denoting that an MBean has been registered. Value is "JMX.mbean.registered".

Constant Value: "JMX.mbean.registered"

public static final String UNREGISTRATION_NOTIFICATION

Notification type denoting that an MBean has been unregistered. Value is "JMX.mbean.unregistered".

Constant Value: "JMX.mbean.unregistered"

Public Constructors

public MBeanServerNotification (String type, Object source, long sequenceNumber, ObjectName objectName)

Creates an MBeanServerNotification object specifying object names of the MBeans that caused the notification and the specified notification type.

Parameters
type A string denoting the type of the notification. Set it to one these values: REGISTRATION_NOTIFICATION, UNREGISTRATION_NOTIFICATION.
source The MBeanServerNotification object responsible for forwarding MBean server notification.
sequenceNumber A sequence number that can be used to order received notifications.
objectName The object name of the MBean that caused the notification.

Public Methods

public ObjectName getMBeanName ()

Returns the object name of the MBean that caused the notification.

Returns
  • the object name of the MBean that caused the notification.