org.jboss.mx.util
Class ObservedObject

java.lang.Object
  extended byorg.jboss.mx.util.ObservedObject

public class ObservedObject
extends java.lang.Object

An observed object


Field Summary
static int OBSERVED_ATTRIBUTE_ERROR_NOTIFIED
          An observed attribute error has been notified.
static int OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED
          An observed attribute type error has been notified.
static int OBSERVED_OBJECT_ERROR_NOTIFIED
          An observed object error has been notified.
static int RESET_FLAGS_ALREADY_NOTIFIED
          Used to reset errors in #alreadyNotified.
static int RUNTIME_ERROR_NOTIFIED
          An observed attribute type error has been notified.
 
Constructor Summary
ObservedObject(ObjectName (src)  objectName)
          Construct a new observed object.
 
Method Summary
 int getAlreadyNotified()
           
 java.lang.Object getDerivedGauge()
           
 long getDerivedGaugeTimeStamp()
           
 java.lang.Object getLastValue()
           
 ObjectName (src) getObjectName()
           
 java.lang.Object getThreshold()
           
 boolean isAlreadyNotified(int mask)
           
 boolean notAlreadyNotified(int mask)
           
 void resetAlreadyNotified()
           
 void setAlreadyNotified(int mask)
           
 void setDerivedGauge(java.lang.Object gauge)
           
 void setDerivedGaugeTimeStamp(long ts)
           
 void setLastValue(java.lang.Object last)
           
 void setNotAlreadyNotified(int mask)
           
 void setThreshold(java.lang.Object threshold)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESET_FLAGS_ALREADY_NOTIFIED

public static final int RESET_FLAGS_ALREADY_NOTIFIED
Used to reset errors in #alreadyNotified.

See Also:
Constant Field Values (src)

RUNTIME_ERROR_NOTIFIED

public static final int RUNTIME_ERROR_NOTIFIED
An observed attribute type error has been notified.

See Also:
Constant Field Values (src)

OBSERVED_OBJECT_ERROR_NOTIFIED

public static final int OBSERVED_OBJECT_ERROR_NOTIFIED
An observed object error has been notified.

See Also:
Constant Field Values (src)

OBSERVED_ATTRIBUTE_ERROR_NOTIFIED

public static final int OBSERVED_ATTRIBUTE_ERROR_NOTIFIED
An observed attribute error has been notified.

See Also:
Constant Field Values (src)

OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED

public static final int OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED
An observed attribute type error has been notified.

See Also:
Constant Field Values (src)
Constructor Detail

ObservedObject

public ObservedObject(ObjectName (src)  objectName)
Construct a new observed object.

Parameters:
objectName - the object name.
Method Detail

getObjectName

public ObjectName (src)  getObjectName()

getAlreadyNotified

public int getAlreadyNotified()

isAlreadyNotified

public boolean isAlreadyNotified(int mask)

notAlreadyNotified

public boolean notAlreadyNotified(int mask)

setNotAlreadyNotified

public void setNotAlreadyNotified(int mask)

setAlreadyNotified

public void setAlreadyNotified(int mask)

resetAlreadyNotified

public void resetAlreadyNotified()

getDerivedGauge

public java.lang.Object getDerivedGauge()

setDerivedGauge

public void setDerivedGauge(java.lang.Object gauge)

getLastValue

public java.lang.Object getLastValue()

setLastValue

public void setLastValue(java.lang.Object last)

getDerivedGaugeTimeStamp

public long getDerivedGaugeTimeStamp()

setDerivedGaugeTimeStamp

public void setDerivedGaugeTimeStamp(long ts)

getThreshold

public java.lang.Object getThreshold()

setThreshold

public void setThreshold(java.lang.Object threshold)

toString

public java.lang.String toString()
Returns:
human readable string.