javax.management
Class AttributeChangeNotification

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.management.Notification (src) 
          extended byjavax.management.AttributeChangeNotification
All Implemented Interfaces:
java.io.Serializable

public class AttributeChangeNotification
extends Notification (src)

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.

See Also:
AttributeChangeNotificationFilter (src) , Serialized Form

Field 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

ATTRIBUTE_CHANGE

public static final java.lang.String ATTRIBUTE_CHANGE
The AttributeChangeNotification notification type. It is "jmx.attribute.change".

See Also:
Constant Field Values (src)
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.

Parameters:
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

getAttributeName

public java.lang.String getAttributeName()
Retrieves the name of the attribute.

Returns:
the name of the attribute.

getAttributeType

public java.lang.String getAttributeType()
Retrieves the type of the attribute.

Returns:
the type of the attribute.

getOldValue

public java.lang.Object getOldValue()
Retrieves the old value of the attribute.

Returns:
the old value of the attribute.

getNewValue

public java.lang.Object getNewValue()
Retrieves the new value of the attribute.

Returns:
the new value of the attribute.

toString

public java.lang.String toString()
Overrides:
toString in class Notification (src)
Returns:
human readable string.