|
|||||||||
| Home >> All >> javax >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.management
Class AttributeChangeNotification

java.lang.Objectjava.util.EventObject
javax.management.Notification
javax.management.AttributeChangeNotification
- All Implemented Interfaces:
- java.io.Serializable
- public class AttributeChangeNotification
- extends Notification
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 55 , type 55 , old value 55 and new value 55 .
The notification type is "jmx.attribute.change", defined in the
static string ATTRIBUTE_CHANGE 55 .
- Version:
- $Revision: 1.2.8.1 $
Revisions:
20020710 Adrian Brock:
- Serialization
| Field Summary | |
static java.lang.String |
ATTRIBUTE_CHANGE
The AttributeChangeNotification notification type. |
private java.lang.String |
attributeName
The name of the attribute. |
private java.lang.String |
attributeType
The type of the attribute. |
private java.lang.Object |
newValue
The new value of the attribute. |
private java.lang.Object |
oldValue
The old value of the attribute. |
private static long |
serialVersionUID
|
| Fields inherited from class javax.management.Notification |
|
| 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()
Converts the event to a String. |
| 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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
ATTRIBUTE_CHANGE
public static final java.lang.String ATTRIBUTE_CHANGE
- The AttributeChangeNotification notification type. It is
"jmx.attribute.change".
- See Also:
- Constant Field Values
attributeName
private java.lang.String attributeName
- The name of the attribute.
attributeType
private java.lang.String attributeType
- The type of the attribute.
oldValue
private java.lang.Object oldValue
- The old value of the attribute.
newValue
private java.lang.Object newValue
- The new value of the attribute.
| Constructor Detail |
AttributeChangeNotification
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)
- Contruct a new attribute change notification.
| Method Detail |
getAttributeName
public java.lang.String getAttributeName()
- Retrieves the name of the attribute.
getAttributeType
public java.lang.String getAttributeType()
- Retrieves the type of the attribute.
getOldValue
public java.lang.Object getOldValue()
- Retrieves the old value of the attribute.
getNewValue
public java.lang.Object getNewValue()
- Retrieves the new value of the attribute.
toString
public java.lang.String toString()
- Description copied from class:
java.util.EventObject - Converts the event to a String. The format is not specified, but by
observation, the JDK uses:
getClass().getName() + "[source=" + source + "]";.- Overrides:
toStringin classNotification
|
|||||||||
| Home >> All >> javax >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC