|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject javax.management.Notification javax.management.AttributeChangeNotification
This is the mandated object for sending notifications of attribute
changes. The MBean may also send other types of notifications.
The MBean must implement the
NotificationBroadcaster
interface to send
this notification.
The following information is provided in addition to the that provided by
Notification
.
The attribute's name
,
type
,
old value
and
new value
.
The notification type is "jmx.attribute.change", defined in the
static string ATTRIBUTE_CHANGE
.
Revisions:
20020710 Adrian Brock:
AttributeChangeNotificationFilter
,
Serialized FormField Summary | |
static String |
ATTRIBUTE_CHANGE
The AttributeChangeNotification notification type. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
AttributeChangeNotification(Object source,
long sequenceNumber,
long timeStamp,
String msg,
String attributeName,
String attributeType,
Object oldValue,
Object newValue)
Contruct a new attribute change notification. |
Method Summary | |
String |
getAttributeName()
Retrieves the name of the attribute. |
String |
getAttributeType()
Retrieves the type of the attribute. |
Object |
getNewValue()
Retrieves the new value of the attribute. |
Object |
getOldValue()
Retrieves the old value of the attribute. |
String |
toString()
|
Methods inherited from class javax.management.Notification |
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ATTRIBUTE_CHANGE
Constructor Detail |
public AttributeChangeNotification(Object source, long sequenceNumber, long timeStamp, String msg, String attributeName, String attributeType, Object oldValue, Object newValue)
source
- the source of the notification.sequenceNumber
- the instance of this notification.timeStamp
- the time the notification was generated.msg
- a human readable form of the change.attributeName
- the name of the attribute.attributeType
- the type of the attribute.oldValue
- the old value of the attribute.newValue
- the new value of the attribute.Method Detail |
public String getAttributeName()
public String getAttributeType()
public Object getOldValue()
public Object getNewValue()
public String toString()
toString
in class Notification
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |