当前页面:
在线文档首页 >
JBoss 3.2.7 management API Documentation 英文版文档
StatisticImpl (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档
org.jboss.management.j2ee.statistics
Class StatisticImpl
java.lang.Object
org.jboss.management.j2ee.statistics.StatisticImpl
- All Implemented Interfaces:
- Serializable, javax.management.j2ee.statistics.Statistic
- Direct Known Subclasses:
- BoundaryStatisticImpl, BoundedRangeStatisticImpl, CountStatisticImpl, RangeStatisticImpl, TimeStatisticImpl
- public abstract class StatisticImpl
- extends Object
- implements javax.management.j2ee.statistics.Statistic, Serializable
JBoss Implementation of the base Model for a Statistic Information
- Version:
- $Revision: 1.1.2.2 $
- Author:
- Marc Fleury, Scott.Stark@jboss.org
- See Also:
- Serialized Form
name
protected String name
units
protected String units
description
protected String description
startTime
protected long startTime
lastSampleTime
protected long lastSampleTime
StatisticImpl
public StatisticImpl(String name,
String units,
String description)
- Create a named Statistic.
- Parameters:
name
- Name of the statisticunits
- Unit description used in this statisticdescription
- Human description of the statistic
getName
public String getName()
- Specified by:
getName
in interface javax.management.j2ee.statistics.Statistic
- Returns:
- Name of the Statistic
getUnit
public String getUnit()
- Specified by:
getUnit
in interface javax.management.j2ee.statistics.Statistic
- Returns:
- Unit of Measurement. For TimeStatistics valid values are "HOUR",
"MINUTE", "SECOND", "MILLISECOND", "MICROSECOND", "NANOSECOND"
getDescription
public String getDescription()
- Specified by:
getDescription
in interface javax.management.j2ee.statistics.Statistic
- Returns:
- A human-readable description
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interface javax.management.j2ee.statistics.Statistic
- Returns:
- The time the first measurment was taken represented as a long, whose
value is the number of milliseconds since January 1, 1970, 00:00:00.
getLastSampleTime
public long getLastSampleTime()
- Specified by:
getLastSampleTime
in interface javax.management.j2ee.statistics.Statistic
- Returns:
- The time the most recent measurment was taken represented as a long,
whose value is the number of milliseconds since January 1, 1970, 00:00:00.
reset
public void reset()
- Reset the lastSampleTime and startTime to the current time
set
public void set()
- Update the lastSampleTime and startTime on first call
toString
public String toString()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.