WSStatisticpublic abstract class StatisticImpl extends java.lang.Object implements Statistic, java.io.Serializable
StatisticImpl is an abstract class. It is the base class
for all the XXXStatisticImpl classes.| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Deprecated.
|
| Constructor and Description |
|---|
StatisticImpl(int id)
Deprecated.
|
StatisticImpl(int id,
java.lang.String name,
java.lang.String unit,
java.lang.String description,
long startTime,
long lastSampleTime)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
combine(Statistic data)
Deprecated.
Aggregate the value of parameter data to this data
|
abstract Statistic |
delta(Statistic data)
Deprecated.
|
void |
disable()
Deprecated.
Server side API only: Set the data disabled
|
void |
enable(int level)
Deprecated.
Server side API only: Set the data enabled and reset the value and createTime
|
PmiDataInfo |
getDataInfo()
Deprecated.
Get config info for the data.
|
java.lang.String |
getDescription()
Deprecated.
|
int |
getId()
Deprecated.
|
long |
getLastSampleTime()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
long |
getStartTime()
Deprecated.
|
java.lang.String |
getUnit()
Deprecated.
|
boolean |
isEnabled()
Deprecated.
return if the data is enabled
|
void |
reset()
Deprecated.
Reset the createTime
|
abstract void |
resetOnClient(Statistic data)
Deprecated.
Reset the data value to zero on client side.
|
void |
setDataInfo(PmiDataInfo info)
Deprecated.
Set the static info for this data.
|
void |
setDataInfo(PmiModuleConfig config)
Deprecated.
Set the static info for this data.
|
void |
setLastSampleTime(long lastSampleTime)
Deprecated.
Set last sample time - server side only
|
void |
setStartTime(long startTime)
Deprecated.
Set start time - server side only
|
java.lang.String |
toString()
Deprecated.
|
java.lang.String |
toString(java.lang.String indent)
Deprecated.
|
java.lang.String |
toXML()
Deprecated.
|
abstract void |
update(Statistic data)
Deprecated.
Update itself with the new value in data.
|
public static final long serialVersionUID
public StatisticImpl(int id)
public StatisticImpl(int id,
java.lang.String name,
java.lang.String unit,
java.lang.String description,
long startTime,
long lastSampleTime)
public java.lang.String getDescription()
getDescription in interface Statisticpublic long getStartTime()
getStartTime in interface Statisticpublic long getLastSampleTime()
getLastSampleTime in interface Statisticpublic void enable(int level)
public void disable()
public boolean isEnabled()
public void reset()
public void setDataInfo(PmiModuleConfig config)
Statisticpublic void setDataInfo(PmiDataInfo info)
Statisticpublic void setLastSampleTime(long lastSampleTime)
Statisticpublic void setStartTime(long startTime)
Statisticpublic int getId()
public PmiDataInfo getDataInfo()
Statisticpublic java.lang.String toXML()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String indent)
public abstract void update(Statistic data)
data - must have the same data ID and typepublic abstract Statistic delta(Statistic data)
data - must have the same data ID and typepublic abstract void combine(Statistic data)
data - must have the same data ID and typepublic abstract void resetOnClient(Statistic data)
data - must have the same data ID and type