org.norther.tammi.core.base
Class ModificationNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by javax.management.AttributeChangeNotification
              extended by org.norther.tammi.core.base.ModificationNotification
All Implemented Interfaces:
Serializable, MBeanReference

public class ModificationNotification
extends AttributeChangeNotification
implements MBeanReference

A modification notification sent after attribute changes.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
static String MODIFIED
          The modified notification.
 
Fields inherited from class javax.management.AttributeChangeNotification
ATTRIBUTE_CHANGE
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
ModificationNotification(MBeanReference src, long sequenceNumber, long timeStamp, String message, String name, String type, Object oldValue, Object newValue)
          Creates a notification with a time stamp and message.
 
Method Summary
 Object get()
          Gets the referent.
 String getClassName()
          Gets the class name.
 MBeanServer getMBeanServer()
          Gets the MBean server.
 ObjectName getObjectName()
          Gets the object name.
 boolean isRegistered()
          Checks whether registered, already unregistered or unregistration is just going on.
 
Methods inherited from class javax.management.AttributeChangeNotification
getAttributeName, getAttributeType, getNewValue, getOldValue
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODIFIED

public static final String MODIFIED
The modified notification.

See Also:
Constant Field Values
Constructor Detail

ModificationNotification

public ModificationNotification(MBeanReference src,
                                long sequenceNumber,
                                long timeStamp,
                                String message,
                                String name,
                                String type,
                                Object oldValue,
                                Object newValue)
Creates a notification with a time stamp and message.

Parameters:
src - the notification source.
sequenceNumber - the sequence number.
timeStamp - the time stamp.
message - the notification message.
name - the attribute name.
type - the attribute type.
oldValue - the old value.
newValue - the new value.
Method Detail

get

public Object get()
Description copied from interface: MBeanReference
Gets the referent.

Specified by:
get in interface MBeanReference
Returns:
the referent or null if not available.

getObjectName

public ObjectName getObjectName()
Description copied from interface: MBeanReference
Gets the object name.

Specified by:
getObjectName in interface MBeanReference
Returns:
the object name or null if not available.

getClassName

public String getClassName()
Description copied from interface: MBeanReference
Gets the class name.

Specified by:
getClassName in interface MBeanReference
Returns:
the class name or null if not available.

isRegistered

public boolean isRegistered()
Description copied from interface: MBeanReference
Checks whether registered, already unregistered or unregistration is just going on.

Specified by:
isRegistered in interface MBeanReference
Returns:
true if still registered, otherwise false.

getMBeanServer

public MBeanServer getMBeanServer()
Description copied from interface: MBeanReference
Gets the MBean server.

Specified by:
getMBeanServer in interface MBeanReference
Returns:
the MBean server or null if never registered.


Copyright © 2004 The Norther Organization. All rights reserved.