com.ibm.websphere.pmi.stat
Class BoundaryStatisticImpl

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

public class BoundaryStatisticImpl
extends StatisticImpl
implements com.ibm.websphere.management.statistics.BoundaryStatistic

Implement JSR77's BoundaryStatistic interface.

See Also:
Serialized Form

Field Summary
protected  long lowerBound
           
protected  long upperBound
           
 
Fields inherited from class com.ibm.websphere.pmi.stat.StatisticImpl
serialVersionUID
 
Constructor Summary
BoundaryStatisticImpl(int dataId)
           
BoundaryStatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
           
 
Method Summary
 void combine(Statistic other)
          Aggregate the value of parameter data to this data
 Statistic delta(Statistic data)
           
 long getLowerBound()
           
 long getUpperBound()
           
 void resetOnClient(Statistic data)
          Reset the data value to zero on client side.
 void set(long lowerBound, long upperBound, long startTime, long lastSampleTime)
           
 void setLowerBound(long val)
           
 void setUpperBound(long val)
           
 void update(Statistic data)
          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, reset, setDataInfo, setDataInfo, setLastSampleTime, setStartTime, toString, toString, 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

upperBound

protected long upperBound

lowerBound

protected long lowerBound
Constructor Detail

BoundaryStatisticImpl

public BoundaryStatisticImpl(int dataId)

BoundaryStatisticImpl

public BoundaryStatisticImpl(int id,
                             java.lang.String name,
                             java.lang.String unit,
                             java.lang.String description,
                             long startTime,
                             long lastSampleTime)
Method Detail

set

public void set(long lowerBound,
                long upperBound,
                long startTime,
                long lastSampleTime)

setLowerBound

public void setLowerBound(long val)

setUpperBound

public void setUpperBound(long val)

getLowerBound

public long getLowerBound()
Specified by:
getLowerBound in interface com.ibm.websphere.management.statistics.BoundaryStatistic

getUpperBound

public long getUpperBound()
Specified by:
getUpperBound in interface com.ibm.websphere.management.statistics.BoundaryStatistic

combine

public void combine(Statistic other)
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:
other - must have the same data ID and type

update

public void update(Statistic data)
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:
data - must have the same data ID and type

delta

public Statistic delta(Statistic data)
Specified by:
delta in interface Statistic
Specified by:
delta in class 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 data)
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:
data - 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.