| java.lang.Object org.jboss.management.j2ee.statistics.StatisticImpl org.jboss.management.j2ee.statistics.TimeStatisticImpl
Method Summary | |
public void | add(long pTime) Adds a Statistic Information about the elapsed time an action
observed by this instance took. | public long | getCount() | public long | getMaxTime() | public long | getMinTime() | public double | getRequestRate() | public long | getTotalTime() | public void | reset() | public void | set(long count, long minTime, long maxTime, long totalTime) Set all TimeStatistic values. | public String | toString() |
count | protected long count(Code) | | |
maxTime | protected long maxTime(Code) | | |
minTime | protected long minTime(Code) | | |
requestRate | protected double requestRate(Code) | | |
totalTime | protected long totalTime(Code) | | |
TimeStatisticImpl | public TimeStatisticImpl(String name, String units, String description)(Code) | | Create a TimeStatistic
Parameters: name - the name of the state Parameters: units - the units of the stat Parameters: description - a description of the stat |
add | public void add(long pTime)(Code) | | Adds a Statistic Information about the elapsed time an action
observed by this instance took.
Parameters: pTime - Time elapsed to added to a statistics |
getCount | public long getCount()(Code) | | The number of times a time measurements was added |
getMaxTime | public long getMaxTime()(Code) | | The maximum time added since start of the measurements |
getMinTime | public long getMinTime()(Code) | | The minimum time added since start of the measurements |
getRequestRate | public double getRequestRate()(Code) | | The request rate which is the number of counts divided bythe time elapsed since the time measurements started |
getTotalTime | public long getTotalTime()(Code) | | The sum of all the time added to the measurements sinceit started |
reset | public void reset()(Code) | | Resets the statistics to the initial values
|
set | public void set(long count, long minTime, long maxTime, long totalTime)(Code) | | Set all TimeStatistic values.
Parameters: count - the invocation count Parameters: minTime - the min time for an invocation Parameters: maxTime - the max time for an invocation Parameters: totalTime - the total time for all invocations |
toString | public String toString()(Code) | | Debug Information about this instance |
|
|