com.ibm.websphere.pmi.stat
Class CountStatisticImpl
- java.lang.Object
-
- com.ibm.websphere.pmi.stat.StatisticImpl
-
- com.ibm.websphere.pmi.stat.CountStatisticImpl
-
- All Implemented Interfaces:
- CountStatistic, Statistic, java.io.Serializable
Deprecated.As of 6.0, replaced withWSCountStatistic
public class CountStatisticImpl extends StatisticImpl implements CountStatistic
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected long
count
Deprecated.
-
Constructor Summary
Constructors Constructor and Description CountStatisticImpl(int dataId)
Deprecated.CountStatisticImpl(int dataId, long count, long startTime, long lastSampleTime)
Deprecated.CountStatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
Deprecated.
-
Method Summary
Methods Modifier and Type Method and Description void
combine(Statistic otherStat)
Deprecated.Aggregate the value of parameter data to this datavoid
decrement()
Deprecated.Server side only methodvoid
decrement(long val)
Deprecated.Server side only methodStatistic
delta(Statistic otherStat)
Deprecated.long
getCount()
Deprecated.void
increment()
Deprecated.Server side only methodvoid
increment(long val)
Deprecated.Server side only methodvoid
reset()
Deprecated.Reset the createTimevoid
reset(boolean resetAll)
Deprecated.void
resetOnClient(Statistic other)
Deprecated.Reset the data value to zero on client side.void
set(long count, long startTime, long lastSampleTime)
Deprecated.void
setCount(long value)
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.-
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
-
-
-
-
Constructor Detail
-
CountStatisticImpl
public CountStatisticImpl(int dataId)
Deprecated.
-
CountStatisticImpl
public CountStatisticImpl(int dataId, long count, long startTime, long lastSampleTime)
Deprecated.
-
CountStatisticImpl
public CountStatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
Deprecated.
-
-
Method Detail
-
getCount
public long getCount()
Deprecated.- Specified by:
getCount
in interfaceCountStatistic
-
reset
public void reset()
Deprecated.Description copied from class:StatisticImpl
Reset the createTime- Overrides:
reset
in classStatisticImpl
-
reset
public void reset(boolean resetAll)
Deprecated.
-
set
public void set(long count, long startTime, long lastSampleTime)
Deprecated.
-
combine
public void combine(Statistic otherStat)
Deprecated.Description copied from class:StatisticImpl
Aggregate the value of parameter data to this data- Specified by:
combine
in classStatisticImpl
- Parameters:
otherStat
- must have the same data ID and type
-
setCount
public void setCount(long value)
Deprecated.
-
increment
public void increment()
Deprecated.Server side only method
-
increment
public void increment(long val)
Deprecated.Server side only method
-
decrement
public void decrement()
Deprecated.Server side only method
-
decrement
public void decrement(long val)
Deprecated.Server side only method
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classStatisticImpl
-
toString
public java.lang.String toString(java.lang.String indent)
Deprecated.- Overrides:
toString
in classStatisticImpl
-
update
public void update(Statistic otherStat)
Deprecated.Description copied from class:StatisticImpl
Update itself with the new value in data.- Specified by:
update
in classStatisticImpl
- Parameters:
otherStat
- must have the same data ID and type
-
delta
public Statistic delta(Statistic otherStat)
Deprecated.- Specified by:
delta
in classStatisticImpl
- 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)
Deprecated.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 classStatisticImpl
- Parameters:
other
- must have the same data ID and type
-
-