public interface WSStatistic
Modifier and Type | Method and Description |
---|---|
void |
combine(WSStatistic otherStatistic)
Returns the aggregate the value of this statistic and parameter otherStatistic
|
WSStatistic |
copy()
Returns a new copy of this statistic
|
WSStatistic |
delta(WSStatistic otherStatistic)
Returns the difference between this statistic and the parameter otherStatistic
|
PmiDataInfo |
getDataInfo()
Returns the statistic config information.
|
java.lang.String |
getDescription()
Returns the description of this statistic.
|
int |
getId()
Returns the Statistic ID
|
long |
getLastSampleTime()
Returns the time the most recent measurement was taken represented as a long.
|
java.lang.String |
getName()
Returns the name of this statistic.
|
long |
getStartTime()
Returns the time the first measurement was taken represented as a long.
|
java.lang.String |
getUnit()
Returns the unit of measurement for this statistic.
|
WSStatistic |
rateOfChange(WSStatistic otherStatistic)
Returns the rate of change of this statistic with respect to the parameter otherStatistic.
|
void |
resetOnClient(WSStatistic otherStatistic)
Resets the statistic with the parameter otherStatistic.
|
void |
setDataInfo(PmiDataInfo info)
Set textual information.
|
void |
setDataInfo(PmiModuleConfig config)
Set textual information.
|
java.lang.String |
toString()
Returns the String representation of this statistic
|
java.lang.String |
toXML()
Return the XML representation of this statistic
|
void |
update(WSStatistic newStatistic)
Updates this statistic with the given value
|
java.lang.String getName()
java.lang.String getUnit()
java.lang.String getDescription()
long getStartTime()
long getLastSampleTime()
void setDataInfo(PmiModuleConfig config)
WSStatsHelper
void setDataInfo(PmiDataInfo info)
WSStatsHelper
int getId()
PmiDataInfo getDataInfo()
void update(WSStatistic newStatistic)
newStatistic
- must have the same statistic ID and typeWSStatistic delta(WSStatistic otherStatistic)
otherStatistic
- must have the same statistic ID and typevoid combine(WSStatistic otherStatistic)
otherStatistic
- must have the same statistic ID and typevoid resetOnClient(WSStatistic otherStatistic)
otherStatistic
- must have the same statistic ID and typeWSStatistic copy()
WSStatistic rateOfChange(WSStatistic otherStatistic)
otherStatistic
- must have the same statistic ID and typejava.lang.String toXML()
java.lang.String toString()
toString
in class java.lang.Object