|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.management.j2ee.statistics.StatisticImpl
org.jboss.management.j2ee.statistics.TimeStatisticImpl
Time Statisitic Container for JBoss.
| Field Summary | |
protected long |
count
|
protected long |
maxTime
|
protected long |
minTime
|
protected double |
requestRate
|
protected long |
totalTime
|
| Fields inherited from class org.jboss.management.j2ee.statistics.StatisticImpl |
description, lastSampleTime, name, startTime, units |
| Constructor Summary | |
TimeStatisticImpl(String name,
String units,
String description)
Create a TimeStatistic |
|
| Method Summary | |
void |
add(long pTime)
Adds a Statistic Information about the elapsed time an action observed by this instance took. |
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. |
double |
getRequestRate()
|
long |
getTotalTime()
This is the sum total of time taken to complete every invocation of this operation since the beginning of this measurement. |
void |
reset()
Resets the statistics to the initial values |
void |
set(long count,
long minTime,
long maxTime,
long totalTime)
Set all TimeStatistic values. |
String |
toString()
|
| Methods inherited from class org.jboss.management.j2ee.statistics.StatisticImpl |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, set |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.management.j2ee.statistics.Statistic |
getDescription, getLastSampleTime, getName, getStartTime, getUnit |
| Field Detail |
protected long count
protected long minTime
protected long maxTime
protected long totalTime
protected double requestRate
| Constructor Detail |
public TimeStatisticImpl(String name, String units, String description)
name - the name of the stateunits - the units of the statdescription - a description of the stat| Method Detail |
public long getCount()
javax.management.j2ee.statistics.TimeStatistic
getCount in interface javax.management.j2ee.statistics.TimeStatisticpublic long getMinTime()
javax.management.j2ee.statistics.TimeStatistic
getMinTime in interface javax.management.j2ee.statistics.TimeStatisticpublic long getMaxTime()
javax.management.j2ee.statistics.TimeStatistic
getMaxTime in interface javax.management.j2ee.statistics.TimeStatisticpublic long getTotalTime()
javax.management.j2ee.statistics.TimeStatistic
getTotalTime in interface javax.management.j2ee.statistics.TimeStatisticpublic double getRequestRate()
public String toString()
toString in class StatisticImplpublic void add(long pTime)
pTime - Time elapsed to added to a statisticspublic void reset()
reset in class StatisticImpl
public void set(long count,
long minTime,
long maxTime,
long totalTime)
count - the invocation countminTime - the min time for an invocationmaxTime - the max time for an invocationtotalTime - the total time for all invocations
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||