com.sun.appserv.management.j2ee.statistics
Class TimeStatisticImpl
java.lang.Object
com.sun.appserv.management.j2ee.statistics.StatisticImpl
com.sun.appserv.management.j2ee.statistics.TimeStatisticImpl
- All Implemented Interfaces:
- Serializable, Statistic, TimeStatistic
public final class TimeStatisticImpl
- extends StatisticImpl
- implements TimeStatistic, Serializable
- See Also:
- Serialized Form
Method Summary |
long |
getCount()
Number of times the operation was invoked since the beginning of this measurement. |
long |
getMaxTime()
The maximum amount of time taken to complete one invocation of this operation since the beginning of this measurement. |
long |
getMinTime()
The minimum amount of time taken to complete one invocation of this operation since the beginning of this measurement. |
long |
getTotalTime()
This is the sum total of time taken to complete every invocation of this operation since the beginning of this measurement. |
TimeStatisticImpl
public TimeStatisticImpl(CompositeData compositeData)
TimeStatisticImpl
public TimeStatisticImpl(Map<String,?> m)
TimeStatisticImpl
public TimeStatisticImpl(TimeStatistic s)
TimeStatisticImpl
public TimeStatisticImpl(MapStatistic s)
TimeStatisticImpl
public TimeStatisticImpl(String name,
String description,
String unit,
long startTime,
long lastSampleTime,
long count,
long maxTime,
long minTime,
long totalTime)
getCount
public long getCount()
- Description copied from interface:
TimeStatistic
- Number of times the operation was invoked since the beginning of this measurement.
- Specified by:
getCount
in interface TimeStatistic
getMaxTime
public long getMaxTime()
- Description copied from interface:
TimeStatistic
- The maximum amount of time taken to complete one invocation of this operation since the beginning of this measurement.
- Specified by:
getMaxTime
in interface TimeStatistic
getMinTime
public long getMinTime()
- Description copied from interface:
TimeStatistic
- The minimum amount of time taken to complete one invocation of this operation since the beginning of this measurement.
- Specified by:
getMinTime
in interface TimeStatistic
getTotalTime
public long getTotalTime()
- Description copied from interface:
TimeStatistic
- This is 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.
- Specified by:
getTotalTime
in interface TimeStatistic
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.