javax.management.j2ee.statistics
Interface TimeStatistic

All Superinterfaces:
Statistic

public interface TimeStatistic
extends Statistic

Specifies standard timing measurements for a given operation.

Version:
$Revision: 1.1 $
Author:
Laurent Etiemble

Method Summary
 long getCount()
          Returns the number of times the operation was invoked since the beginning of this measurement.
 long getMaxTime()
          Returns the maximum amount of time taken to complete one invocation of this operation since the beginning of this measurement.
 long getMinTime()
          Returns the minimum amount of time taken to complete one invocation of this operation since the beginning of this measurement.
 long getTotalTime()
          Returns the sum total of time taken to complete every invocation of this operation since the beginning of this measurement.
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Method Detail

getCount

public long getCount()
Returns the number of times the operation was invoked since the beginning of this measurement.

Returns:
The count value

getMaxTime

public long getMaxTime()
Returns the maximum amount of time taken to complete one invocation of this operation since the beginning of this measurement.

Returns:
The max time value

getMinTime

public long getMinTime()
Returns the minimum amount of time taken to complete one invocation of this operation since the beginning of this measurement.

Returns:
The min time value

getTotalTime

public long getTotalTime()
Returns the sum total of time taken to complete every invocation of this operation since the beginning of this measurement. Dividing totalTime by count will give you the average execution time for this operation.

Returns:
The total time value


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.