|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.pmi.stat.StatisticImpl
com.ibm.websphere.pmi.stat.RangeStatisticImpl
Implement JSR77's RangeStatistic interface. Extended to provide time-weighted mean as well as current.
Field Summary | |
---|---|
protected long |
current
|
protected long |
highWaterMark
|
protected long |
integral
|
protected long |
lowWaterMark
|
Fields inherited from class com.ibm.websphere.pmi.stat.StatisticImpl |
---|
serialVersionUID |
Constructor Summary | |
---|---|
RangeStatisticImpl(int dataId)
|
|
RangeStatisticImpl(int id,
long lowWaterMark,
long highWaterMark,
long current,
long integral,
long startTime,
long lastSampleTime)
|
|
RangeStatisticImpl(int id,
java.lang.String name,
java.lang.String unit,
java.lang.String description,
long startTime,
long lastSampleTime)
|
Method Summary | |
---|---|
void |
add(long val)
|
void |
add(long curTime,
long val)
|
void |
cleanup()
|
void |
combine(Statistic otherStat)
Aggregate the value of parameter data to this data |
void |
decrement()
To be called on server side only |
void |
decrement(long decVal)
To be called on server side only |
void |
decrement(long curTime,
long val)
|
Statistic |
delta(Statistic otherStat)
|
long |
getCurrent()
|
long |
getHighWaterMark()
|
long |
getIntegral()
|
long |
getLowWaterMark()
|
double |
getMean()
|
void |
increment()
To be called on server side only |
void |
increment(long incVal)
To be called on server side only |
void |
increment(long curTime,
long val)
|
long |
myupdate()
|
long |
myupdate(long curTime)
Server side method in order to calculate the time-weighted mean. |
void |
reset()
Reset the createTime |
void |
reset(boolean resetAll)
|
void |
resetOnClient(Statistic other)
Reset the data value to zero on client side. |
void |
set(long lowWaterMark,
long highWaterMark,
long current,
long integral,
long startTime,
long lastSampleTime)
|
void |
setLastValue(long val)
|
void |
setWaterMark(long val)
|
protected void |
setWaterMark(long val,
long curTime)
|
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String indent)
|
void |
update(Statistic otherStat)
Update itself with the new value in data. |
Methods inherited from class com.ibm.websphere.pmi.stat.StatisticImpl |
---|
disable, enable, getDataInfo, getDescription, getId, getLastSampleTime, getName, getStartTime, getUnit, isEnabled, setDataInfo, setDataInfo, setLastSampleTime, setStartTime, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.websphere.management.statistics.Statistic |
---|
getDescription, getLastSampleTime, getName, getStartTime, getUnit |
Field Detail |
protected long highWaterMark
protected long lowWaterMark
protected long current
protected long integral
Constructor Detail |
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)
Method Detail |
public void reset()
StatisticImpl
reset
in interface Statistic
reset
in class StatisticImpl
public void reset(boolean resetAll)
public void set(long lowWaterMark, long highWaterMark, long current, long integral, long startTime, long lastSampleTime)
public void setWaterMark(long val)
protected void setWaterMark(long val, long curTime)
public long getLowWaterMark()
getLowWaterMark
in interface com.ibm.websphere.management.statistics.RangeStatistic
public long getHighWaterMark()
getHighWaterMark
in interface com.ibm.websphere.management.statistics.RangeStatistic
public long getCurrent()
getCurrent
in interface com.ibm.websphere.management.statistics.RangeStatistic
public long getIntegral()
public double getMean()
public void add(long val)
public void increment()
public void increment(long incVal)
public void decrement()
public void decrement(long decVal)
public void add(long curTime, long val)
public void increment(long curTime, long val)
public void decrement(long curTime, long val)
public long myupdate(long curTime)
public long myupdate()
public void setLastValue(long val)
public void combine(Statistic otherStat)
StatisticImpl
combine
in interface Statistic
combine
in class StatisticImpl
otherStat
- must have the same data ID and typepublic void cleanup()
public java.lang.String toString()
toString
in interface Statistic
toString
in class StatisticImpl
public java.lang.String toString(java.lang.String indent)
toString
in interface Statistic
toString
in class StatisticImpl
public void update(Statistic otherStat)
StatisticImpl
update
in interface Statistic
update
in class StatisticImpl
otherStat
- must have the same data ID and typepublic Statistic delta(Statistic otherStat)
delta
in interface Statistic
delta
in class StatisticImpl
otherStat
- must have the same data ID and type
public void resetOnClient(Statistic other)
StatisticImpl
resetOnClient
in interface Statistic
resetOnClient
in class StatisticImpl
other
- must have the same data ID and type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |