当前页面:
在线文档首页 >
JBoss 3.2.7 management API Documentation 英文版文档
TimeStatisticImpl (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档
org.jboss.management.j2ee.statistics
Class TimeStatisticImpl
java.lang.Object
org.jboss.management.j2ee.statistics.StatisticImpl
org.jboss.management.j2ee.statistics.TimeStatisticImpl
- All Implemented Interfaces:
- Serializable, javax.management.j2ee.statistics.Statistic, javax.management.j2ee.statistics.TimeStatistic
- public class TimeStatisticImpl
- extends StatisticImpl
- implements javax.management.j2ee.statistics.TimeStatistic
Time Statisitic Container for JBoss.
- Version:
- $Revision: 1.1.2.4 $
- Author:
- Marc Fleury, Andreas Schaefer
- See Also:
- Serialized Form
Fields inherited from interface javax.management.j2ee.statistics.TimeStatistic |
HOUR, MICROSECOND, MILLISECOND, MINUTE, NANOSECOND, SECOND |
Method Summary |
void |
add(long pTime)
Adds a Statistic Information about the elapsed time an action
observed by this instance took. |
long |
getCount()
|
long |
getMaxTime()
|
long |
getMinTime()
|
double |
getRequestRate()
|
long |
getTotalTime()
|
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 interface javax.management.j2ee.statistics.Statistic |
getDescription, getLastSampleTime, getName, getStartTime, getUnit |
count
protected long count
minTime
protected long minTime
maxTime
protected long maxTime
totalTime
protected long totalTime
requestRate
protected double requestRate
TimeStatisticImpl
public TimeStatisticImpl(String name,
String units,
String description)
- Create a TimeStatistic
- Parameters:
name
- the name of the stateunits
- the units of the statdescription
- a description of the stat
getCount
public long getCount()
- Specified by:
getCount
in interface javax.management.j2ee.statistics.TimeStatistic
- Returns:
- The number of times a time measurements was added
getMinTime
public long getMinTime()
- Specified by:
getMinTime
in interface javax.management.j2ee.statistics.TimeStatistic
- Returns:
- The minimum time added since start of the measurements
getMaxTime
public long getMaxTime()
- Specified by:
getMaxTime
in interface javax.management.j2ee.statistics.TimeStatistic
- Returns:
- The maximum time added since start of the measurements
getTotalTime
public long getTotalTime()
- Specified by:
getTotalTime
in interface javax.management.j2ee.statistics.TimeStatistic
- Returns:
- The sum of all the time added to the measurements since
it started
getRequestRate
public double getRequestRate()
- Returns:
- The request rate which is the number of counts divided by
the time elapsed since the time measurements started
toString
public String toString()
- Overrides:
toString
in class StatisticImpl
- Returns:
- Debug Information about this instance
add
public void add(long pTime)
- Adds a Statistic Information about the elapsed time an action
observed by this instance took.
- Parameters:
pTime
- Time elapsed to added to a statistics
reset
public void reset()
- Resets the statistics to the initial values
- Overrides:
reset
in class StatisticImpl
set
public void set(long count,
long minTime,
long maxTime,
long totalTime)
- Set all TimeStatistic values.
- Parameters:
count
- the invocation countminTime
- the min time for an invocationmaxTime
- the max time for an invocationtotalTime
- the total time for all invocations
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.