|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.management.Notification (src)
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
(src) interface to send
this notification.
The following information is provided in addition to the that provided by
Notification
(src) .
The attribute's name
,
type
,
old value
and
new value
.
The notification type is "jmx.attribute.change", defined in the
static string ATTRIBUTE_CHANGE
.
AttributeChangeNotificationFilter
(src) ,
Serialized FormField Summary | |
static java.lang.String |
ATTRIBUTE_CHANGE
The AttributeChangeNotification notification type. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
AttributeChangeNotification(java.lang.Object source,
long sequenceNumber,
long timeStamp,
java.lang.String msg,
java.lang.String attributeName,
java.lang.String attributeType,
java.lang.Object oldValue,
java.lang.Object newValue)
Contruct a new attribute change notification. |
Method Summary | |
java.lang.String |
getAttributeName()
Retrieves the name of the attribute. |
java.lang.String |
getAttributeType()
Retrieves the type of the attribute. |
java.lang.Object |
getNewValue()
Retrieves the new value of the attribute. |
java.lang.Object |
getOldValue()
Retrieves the old value of the attribute. |
java.lang.String |
toString()
|
Methods inherited from class javax.management.Notification (src) |
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 java.lang.String ATTRIBUTE_CHANGE
Constructor Detail |
public AttributeChangeNotification(java.lang.Object source, long sequenceNumber, long timeStamp, java.lang.String msg, java.lang.String attributeName, java.lang.String attributeType, java.lang.Object oldValue, java.lang.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 java.lang.String getAttributeName()
public java.lang.String getAttributeType()
public java.lang.Object getOldValue()
public java.lang.Object getNewValue()
public java.lang.String toString()
toString
in class Notification (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |