WSRangeStatistic
public class RangeStatisticImpl extends StatisticImpl implements RangeStatistic
Modifier and Type | Field and Description |
---|---|
protected long |
current
Deprecated.
|
protected long |
highWaterMark
Deprecated.
|
protected boolean |
initWaterMark
Deprecated.
|
protected long |
integral
Deprecated.
|
protected long |
lowWaterMark
Deprecated.
|
Constructor and Description |
---|
RangeStatisticImpl(int dataId)
Deprecated.
|
RangeStatisticImpl(int id,
long lowWaterMark,
long highWaterMark,
long current,
long integral,
long startTime,
long lastSampleTime)
Deprecated.
|
RangeStatisticImpl(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 |
---|---|
void |
add(long val)
Deprecated.
|
void |
add(long curTime,
long val)
Deprecated.
|
void |
cleanup()
Deprecated.
|
void |
combine(Statistic otherStat)
Deprecated.
Aggregate the value of parameter data to this data
|
void |
decrement()
Deprecated.
To be called on server side only
|
void |
decrement(long decVal)
Deprecated.
To be called on server side only
|
void |
decrement(long curTime,
long val)
Deprecated.
|
Statistic |
delta(Statistic otherStat)
Deprecated.
|
long |
getCurrent()
Deprecated.
|
long |
getHighWaterMark()
Deprecated.
|
long |
getIntegral()
Deprecated.
|
long |
getLowWaterMark()
Deprecated.
|
double |
getMean()
Deprecated.
|
void |
increment()
Deprecated.
To be called on server side only
|
void |
increment(long incVal)
Deprecated.
To be called on server side only
|
void |
increment(long curTime,
long val)
Deprecated.
|
long |
myupdate()
Deprecated.
Server side method in order to calculate the time-weighted mean.
|
long |
myupdate(long curTime)
Deprecated.
|
void |
reset()
Deprecated.
Reset the createTime
|
void |
reset(boolean resetAll)
Deprecated.
|
void |
resetOnClient(Statistic other)
Deprecated.
Reset the data value to zero on client side.
|
void |
set(long lowWaterMark,
long highWaterMark,
long current,
long integral,
long startTime,
long lastSampleTime)
Deprecated.
|
void |
setLastValue(long val)
Deprecated.
|
void |
setWaterMark(long val)
Deprecated.
|
protected void |
setWaterMark(long val,
long curTime)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
java.lang.String |
toString(java.lang.String indent)
Deprecated.
|
void |
update(Statistic otherStat)
Deprecated.
Update itself with the new value in data.
|
disable, enable, getDataInfo, getDescription, getId, getLastSampleTime, getName, getStartTime, getUnit, isEnabled, setDataInfo, setDataInfo, setLastSampleTime, setStartTime, toXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
protected long highWaterMark
protected long lowWaterMark
protected long current
protected long integral
protected boolean initWaterMark
public RangeStatisticImpl(int dataId)
public RangeStatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
public RangeStatisticImpl(int id, long lowWaterMark, long highWaterMark, long current, long integral, long startTime, long lastSampleTime)
public long getLowWaterMark()
getLowWaterMark
in interface RangeStatistic
public long getHighWaterMark()
getHighWaterMark
in interface RangeStatistic
public long getCurrent()
getCurrent
in interface RangeStatistic
public long getIntegral()
public double getMean()
public void reset()
StatisticImpl
reset
in class StatisticImpl
public void reset(boolean resetAll)
public void setWaterMark(long val)
protected void setWaterMark(long val, long curTime)
public void set(long lowWaterMark, long highWaterMark, long current, long integral, long startTime, long lastSampleTime)
public void add(long val)
public void add(long curTime, long val)
public void increment()
public void increment(long incVal)
public void increment(long curTime, long val)
public void decrement()
public void decrement(long decVal)
public void decrement(long curTime, long val)
public long myupdate()
public long myupdate(long curTime)
public void setLastValue(long val)
public void combine(Statistic otherStat)
StatisticImpl
combine
in class StatisticImpl
otherStat
- must have the same data ID and typepublic void update(Statistic otherStat)
StatisticImpl
update
in class StatisticImpl
otherStat
- must have the same data ID and typepublic Statistic delta(Statistic otherStat)
delta
in class StatisticImpl
otherStat
- must have the same data ID and typepublic void resetOnClient(Statistic other)
StatisticImpl
resetOnClient
in class StatisticImpl
other
- must have the same data ID and typepublic void cleanup()
public java.lang.String toString()
toString
in class StatisticImpl
public java.lang.String toString(java.lang.String indent)
toString
in class StatisticImpl