com.ibm.websphere.pmi.stat
Class CountStatisticImpljava.lang.Object | +--com.ibm.websphere.pmi.stat.StatisticImpl | +--com.ibm.websphere.pmi.stat.CountStatisticImpl
- All Implemented Interfaces:
- com.ibm.websphere.management.statistics.CountStatistic, java.io.Serializable, Statistic, com.ibm.websphere.management.statistics.Statistic
- public class CountStatisticImpl
- extends StatisticImpl
- implements com.ibm.websphere.management.statistics.CountStatistic
Implement JSR77's CountStatistic interface.
- See Also:
- Serialized Form
Field Summary protected long count
Fields inherited from class com.ibm.websphere.pmi.stat.StatisticImpl serialVersionUID
Constructor Summary CountStatisticImpl(int dataId)
CountStatisticImpl(int dataId, long count, long startTime, long lastSampleTime)
CountStatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
Method Summary void combine(Statistic otherStat)
Aggregate the value of parameter data to this datavoid decrement()
Server side only methodvoid decrement(long val)
Server side only methodStatistic delta(Statistic otherStat)
long getCount()
void increment()
Server side only methodvoid increment(long val)
Server side only methodvoid reset()
Reset the createTimevoid reset(boolean resetAll)
void resetOnClient(Statistic other)
Reset the data value to zero on client side.void set(long count, long startTime, long lastSampleTime)
void setCount(long value)
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 count
protected long count
Constructor Detail CountStatisticImpl
public CountStatisticImpl(int dataId)
CountStatisticImpl
public CountStatisticImpl(int dataId, long count, long startTime, long lastSampleTime)
CountStatisticImpl
public CountStatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
Method Detail reset
public void reset()
- Description copied from class: StatisticImpl
- Reset the createTime
- Specified by:
- reset in interface Statistic
- Overrides:
- reset in class StatisticImpl
reset
public void reset(boolean resetAll)
set
public void set(long count, long startTime, long lastSampleTime)
getCount
public long getCount()
- Specified by:
- getCount in interface com.ibm.websphere.management.statistics.CountStatistic
combine
public void combine(Statistic otherStat)
- Description copied from class: StatisticImpl
- Aggregate the value of parameter data to this data
- Specified by:
- combine in interface Statistic
- Specified by:
- combine in class StatisticImpl
- Parameters:
- otherStat - must have the same data ID and type
setCount
public void setCount(long value)
increment
public void increment()
- Server side only method
increment
public void increment(long val)
- Server side only method
decrement
public void decrement()
- Server side only method
decrement
public void decrement(long val)
- Server side only method
toString
public java.lang.String toString()
- Specified by:
- toString in interface Statistic
- Overrides:
- toString in class StatisticImpl
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
- toString in interface Statistic
- Overrides:
- toString in class StatisticImpl
update
public void update(Statistic otherStat)
- Description copied from class: StatisticImpl
- Update itself with the new value in data.
- Specified by:
- update in interface Statistic
- Specified by:
- update in class StatisticImpl
- Parameters:
- otherStat - must have the same data ID and type
delta
public Statistic delta(Statistic otherStat)
- Specified by:
- delta in interface Statistic
- Specified by:
- delta in class StatisticImpl
- Parameters:
- otherStat - must have the same data ID and type
- Returns:
- an Statistic object whose value is the difference of (this - data)
resetOnClient
public void resetOnClient(Statistic other)
- Description copied from class: StatisticImpl
- Reset the data value to zero on client side. When using update method, the value will always be the value since the last reset is called.
- Specified by:
- resetOnClient in interface Statistic
- Specified by:
- resetOnClient in class StatisticImpl
- Parameters:
- other - must have the same data ID and type
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.