com.ibm.websphere.pmi.client
Interface CpdValue
- All Superinterfaces:
- java.lang.Cloneable, CpdXML, PmiConstants, java.io.Serializable
- All Known Subinterfaces:
- CpdDouble, CpdInt, CpdLoad, CpdLong, CpdStat
- public interface CpdValue
- extends java.io.Serializable, java.lang.Cloneable, CpdXML, PmiConstants
The CpdStat is a 4.0 class and will be supported in 5.0. It is the base interface for CpdLong, CpdLoad, CpdStat, and CpdDouble.
Field Summary static long serialVersionUID
Fields inherited from interface com.ibm.websphere.pmi.client.CpdXML INDENT_SPACE
Method Summary CpdValue changeInValue(CpdValue prev)
java.lang.Object clone()
Return a clone of the data objectvoid combine(CpdValue other)
add the other's value to this valueCpdValue delta(CpdValue prev)
Return a CpdValue object representing the difference between the two data points.double getAccurateTime()
The time the data was retrieved - a double including the decimal part if any.long getLastSampleTime()
Return the time it is last updated on serverlong getStartTime()
This method is not implemented for PMI data from 3.5/4.0 serverlong getTime()
The time the data was retrieved - a longint getType()
The type of this value: int, double, long, stat, loaddouble getValue()
The current value in double of the data object The value returned depends on the type of the value.CpdValue rateChangeOfValue(CpdValue prev)
Return a CpdValue object representing the rate of difference between the two data points.void setLastSampleTime(double lastSampleTime)
Set lastSampleTime if it is not set in the constructor yetjava.lang.String valueToString()
The current value in String of the data object The value returned depends on the type of the value.
Methods inherited from interface com.ibm.websphere.pmi.client.CpdXML fromXML, toXML, toXML, toXML
Field Detail serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
Method Detail getType
public int getType()
- The type of this value: int, double, long, stat, load
getAccurateTime
public double getAccurateTime()
- The time the data was retrieved - a double including the decimal part if any.
getTime
public long getTime()
- The time the data was retrieved - a long
getStartTime
public long getStartTime()
- This method is not implemented for PMI data from 3.5/4.0 server
getLastSampleTime
public long getLastSampleTime()
- Return the time it is last updated on server
setLastSampleTime
public void setLastSampleTime(double lastSampleTime)
- Set lastSampleTime if it is not set in the constructor yet
getValue
public double getValue()
- The current value in double of the data object The value returned depends on the type of the value. For stat value, it returns mean. For load value, it returns current level.
valueToString
public java.lang.String valueToString()
- The current value in String of the data object The value returned depends on the type of the value. For stat value, it returns mean. For load value, it returns current level.
delta
public CpdValue delta(CpdValue prev)
- Return a CpdValue object representing the difference between the two data points. Used while doing reset()
changeInValue
public CpdValue changeInValue(CpdValue prev)
rateChangeOfValue
public CpdValue rateChangeOfValue(CpdValue prev)
- Return a CpdValue object representing the rate of difference between the two data points.
combine
public void combine(CpdValue other)
- add the other's value to this value
clone
public java.lang.Object clone()
- Return a clone of the data object
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.