|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.management.j2ee.statistics.StatisticImpl (src)
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 (src) |
description, lastSampleTime, name, startTime, units |
Constructor Summary | |
TimeStatisticImpl(java.lang.String name,
java.lang.String units,
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src) |
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 (src) |
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(java.lang.String name, java.lang.String units, java.lang.String description)
name
- the name of the stateunits
- the units of the statdescription
- a description of the statMethod Detail |
public long getCount()
TimeStatistic (src)
getCount
in interface TimeStatistic (src)
public long getMinTime()
TimeStatistic (src)
getMinTime
in interface TimeStatistic (src)
public long getMaxTime()
TimeStatistic (src)
getMaxTime
in interface TimeStatistic (src)
public long getTotalTime()
TimeStatistic (src)
getTotalTime
in interface TimeStatistic (src)
public double getRequestRate()
public java.lang.String toString()
toString
in class StatisticImpl (src)
public void add(long pTime)
pTime
- Time elapsed to added to a statisticspublic void reset()
reset
in class StatisticImpl (src)
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 (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |