IBM WebSphereTM eXtreme Scale, Release 8.5
API Specification

com.ibm.websphere.objectgrid.stats
Interface TimeStatistic

All Superinterfaces:
Serializable, Statistic
All Known Subinterfaces:
ActiveTimeStatistic

public interface TimeStatistic
extends Statistic

This interface represents a standard time measurement.

Since:
WAS XD 6.0.1

Method Summary
 void add(long time)
          Adds a time value to this statistic.
 TimeStatistic copy()
          Returns a new copy of this statistic.
 long getCount()
          Gets the count since the last reset.
 long getMaxTime()
          Gets the maximum time value since the beginning of the measurement.
 double getMeanTime()
          Gets the mean or average of the time values.
 long getMinTime()
          Gets the minimum time value since the beginning of the measurement.
 long getSumOfSquares()
          Gets the sum of squares of the time values.
 long getTotalTime()
          Gets the total time since the beginning of the measurement.
 
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

getTotalTime

long getTotalTime()
Gets the total time since the beginning of the measurement.

Returns:
the sum total of time

getMinTime

long getMinTime()
Gets the minimum time value since the beginning of the measurement.

Returns:
the minimum time

getMaxTime

long getMaxTime()
Gets the maximum time value since the beginning of the measurement.

Returns:
the maximum time

getMeanTime

double getMeanTime()
Gets the mean or average of the time values.

The average time is calculated by dividing getTotalTime() by getCount()

Returns:
the mean time

getSumOfSquares

long getSumOfSquares()
Gets the sum of squares of the time values.

Returns:
the sum of squares of the time values

add

void add(long time)
Adds a time value to this statistic.

Parameters:
time - the time duration to add

copy

TimeStatistic copy()
Returns a new copy of this statistic.

Returns:
a copy of this object

IBM WebSphereTM eXtreme Scale, Release 8.5
API Specification

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