|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.monitor.stats.MutableTimeStatisticImpl
public class MutableTimeStatisticImpl
An implementation of MutableTimeStatistic that eases the various
statistical calculations.
| Constructor Summary | |
|---|---|
MutableTimeStatisticImpl(TimeStatistic initial)
Constructs an instance of this class from its immutable equivalent. |
|
| Method Summary | |
|---|---|
long |
getCount()
Number of times the operation was invoked since the beginning of this measurement. |
String |
getDescription()
A human-readable description of the Statistic. |
long |
getLastSampleTime()
The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00. |
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. |
String |
getName()
The name of this Statistic. |
long |
getStartTime()
The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00. |
long |
getTotalTime()
This is the sum total of time taken to complete every invocation of this operation since the beginning of this measurement. |
String |
getUnit()
The unit of measurement for this Statistic. |
void |
incrementCount(long current)
Increments the count of operation execution by 1 and also increases the time consumed. |
Statistic |
modifiableView()
Returns an instance of Statistic whose state can be changed by the caller. |
void |
reset()
Resets the Statistic. |
void |
setDescription(String s)
|
Statistic |
unmodifiableView()
This method is the essence of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableTimeStatisticImpl(TimeStatistic initial)
instance - of (immutable) TimeStatistic| Method Detail |
|---|
public void incrementCount(long current)
incrementCount in interface MutableTimeStatisticcurrent - long indicating time in whatever unit this statistic is calculatedpublic void reset()
reset in interface MutableStatisticpublic Statistic unmodifiableView()
unmodifiableView in interface MutableStatisticTimeStatisticpublic Statistic modifiableView()
MutableStatistic
modifiableView in interface MutableStatisticpublic long getCount()
TimeStatistic
getCount in interface TimeStatisticpublic String getDescription()
Statistic
getDescription in interface Statisticpublic long getLastSampleTime()
Statistic
getLastSampleTime in interface Statisticpublic long getMaxTime()
TimeStatistic
getMaxTime in interface TimeStatisticpublic long getMinTime()
TimeStatistic
getMinTime in interface TimeStatisticpublic String getName()
Statistic
getName in interface Statisticpublic long getStartTime()
Statistic
getStartTime in interface Statisticpublic long getTotalTime()
TimeStatistic
getTotalTime in interface TimeStatisticpublic String getUnit()
Statistic
getUnit in interface Statisticpublic void setDescription(String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||