com.ibm.websphere.pmi.stat
Class DoubleStatisticImpl

java.lang.Object
  |
  +--com.ibm.websphere.pmi.stat.StatisticImpl
        |
        +--com.ibm.websphere.pmi.stat.DoubleStatisticImpl
All Implemented Interfaces:
java.io.Serializable, com.ibm.websphere.management.statistics.Statistic, Statistic

public class DoubleStatisticImpl
extends StatisticImpl

It is similar to CountStatisticImpl but contains a double member.

See Also:
Serialized Form

Field Summary
protected  double count
           
 
Fields inherited from class com.ibm.websphere.pmi.stat.StatisticImpl
serialVersionUID
 
Constructor Summary
DoubleStatisticImpl(int dataId)
           
DoubleStatisticImpl(int dataId, double count, long startTime, long lastSampleTime)
           
DoubleStatisticImpl(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 data
 void decrement()
          Server side only method
 void decrement(double val)
          Server side only method
 Statistic delta(Statistic otherStat)
           
 double getDouble()
           
 void increment()
          Server side only method
 void increment(double val)
          Server side only method
 void reset()
          Reset the createTime
 void reset(boolean resetAll)
           
 void resetOnClient(Statistic other)
          Reset the data value to zero on client side.
 void set(double count, long startTime, long lastSampleTime)
           
 void setDouble(double 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
 

Field Detail

count

protected double count
Constructor Detail

DoubleStatisticImpl

public DoubleStatisticImpl(int dataId)

DoubleStatisticImpl

public DoubleStatisticImpl(int dataId,
                           double count,
                           long startTime,
                           long lastSampleTime)

DoubleStatisticImpl

public DoubleStatisticImpl(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
Overrides:
reset in class StatisticImpl

reset

public void reset(boolean resetAll)

set

public void set(double count,
                long startTime,
                long lastSampleTime)

getDouble

public double getDouble()

combine

public void combine(Statistic otherStat)
Description copied from class: StatisticImpl
Aggregate the value of parameter data to this data
Overrides:
combine in class StatisticImpl
Following copied from class: com.ibm.websphere.pmi.stat.StatisticImpl
Parameters:
data - must have the same data ID and type

setDouble

public void setDouble(double value)

increment

public void increment()
Server side only method

increment

public void increment(double val)
Server side only method

decrement

public void decrement()
Server side only method

decrement

public void decrement(double val)
Server side only method

toString

public java.lang.String toString()
Overrides:
toString in class StatisticImpl

toString

public java.lang.String toString(java.lang.String indent)
Overrides:
toString in class StatisticImpl

update

public void update(Statistic otherStat)
Description copied from class: StatisticImpl
Update itself with the new value in data.
Overrides:
update in class StatisticImpl
Following copied from class: com.ibm.websphere.pmi.stat.StatisticImpl
Parameters:
data - must have the same data ID and type

delta

public Statistic delta(Statistic otherStat)
Overrides:
delta in class StatisticImpl
Following copied from class: com.ibm.websphere.pmi.stat.StatisticImpl
Parameters:
data - 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.
Overrides:
resetOnClient in class StatisticImpl
Following copied from class: com.ibm.websphere.pmi.stat.StatisticImpl
Parameters:
data - must have the same data ID and type