javax.management
public class MBeanServerNotification extends Notification
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
.
Modifier and Type | Field and Description |
---|---|
static String |
REGISTRATION_NOTIFICATION
Notification type denoting that an MBean has been registered.
|
static String |
UNREGISTRATION_NOTIFICATION
Notification type denoting that an MBean has been unregistered.
|
source
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
ObjectName |
getMBeanName()
Returns the object name of the MBean that caused the notification.
|
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
getSource
public static final String REGISTRATION_NOTIFICATION
public static final String UNREGISTRATION_NOTIFICATION
public MBeanServerNotification(String type, Object source, long sequenceNumber, ObjectName objectName)
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 ObjectName getMBeanName()
Submit a bug or feature Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved.
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.