IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.stats
Interface CountStatistic

All Superinterfaces:
Serializable, Statistic
All Known Subinterfaces:
ActiveCountStatistic

public interface CountStatistic
extends Statistic

This interface represents statistic with a standard count measurement.

Since:
WAS XD 6.0.1

Method Summary
 CountStatistic copy()
          Returns a new copy of this statistic
 long getCount()
          Gets the count since the last reset.
 long getMax()
          Gets the maximum count value
 long getMin()
          Gets the minimum count value.
 CountStatistic rateOfChange(CountStatistic otherStatistic)
          Calculates the rate of change between two CountStatistics.
 
Methods inherited from interface com.ibm.websphere.objectgrid.stats.Statistic
combine, delta, getDescription, getId, getLastSampleTime, getName, getStartTime, getUnit, isEnabled, reset, toString, update
 

Method Detail

getCount

long getCount()
Gets the count since the last reset.

Returns:
the count

copy

CountStatistic copy()
Returns a new copy of this statistic

Returns:
a copy of this object

rateOfChange

CountStatistic rateOfChange(CountStatistic otherStatistic)
Calculates the rate of change between two CountStatistics.

The provided CountStatistic must have the same statistic ID and type. The returned CountStatistic object is calculated by the count by the duration time difference of update time between the two statistics.

Parameters:
otherStatistic - a count statistic to compare with
Returns:
a CountStatistic with the rate of change between this object and the specified object or null if the types or IDs don't match or the update time between the two Statistics is zero
See Also:
Statistic.getId(), Statistic.getLastSampleTime()

getMin

long getMin()
Gets the minimum count value.

Returns:
the minimum count value

getMax

long getMax()
Gets the maximum count value

Returns:
the maximum count value

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.