com.jrockit.mc.rjmx.subscription
Class AttributeValue

java.lang.Object
  extended by com.jrockit.mc.rjmx.subscription.AttributeValue

public final class AttributeValue
extends java.lang.Object

Data carrier mainly used by the subscription engine. Contains information on what attribute was retrieved, the value of the attribute and the time when the data was collected.

Author:
Marcus Hirt

Constructor Summary
AttributeValue(IAttributeInfo attributeInfo, java.lang.Object value, long timestamp)
          Constructor.
 
Method Summary
 IAttributeInfo getAttributeInfo()
          Returns the attribute info.
 long getTimestamp()
          Returns the time-stamp from when this value was fetched.
 java.lang.Object getValue()
          Returns the value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValue

public AttributeValue(IAttributeInfo attributeInfo,
                      java.lang.Object value,
                      long timestamp)
Constructor.

Parameters:
attributeInfo - the attribute for which this data is retrieved.
value - the actual value
timestamp - the estimated time (server time) for when the data was collected.
Method Detail

getValue

public java.lang.Object getValue()
Returns the value.

Returns:
the value.

getTimestamp

public long getTimestamp()
Returns the time-stamp from when this value was fetched.

Returns:
the time-stamp. In the current implementation, all values will be time-stamped with approximated server times.

getAttributeInfo

public IAttributeInfo getAttributeInfo()
Returns the attribute info.

Returns:
the attribute info.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.