当前页面:
在线文档首页 >
JBoss 3.2.7 management API Documentation 英文版文档
RangeStatisticImpl (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档
org.jboss.management.j2ee.statistics
Class RangeStatisticImpl
java.lang.Object
org.jboss.management.j2ee.statistics.StatisticImpl
org.jboss.management.j2ee.statistics.RangeStatisticImpl
- All Implemented Interfaces:
- javax.management.j2ee.statistics.RangeStatistic, Serializable, javax.management.j2ee.statistics.Statistic
- public class RangeStatisticImpl
- extends StatisticImpl
- implements javax.management.j2ee.statistics.RangeStatistic
This class is the JBoss specific Range Statistics class allowing
just to increase and resetStats the instance.
- Version:
- $Revision: 1.1.2.2 $
- Author:
- Scott McLaughlin
- See Also:
- Serialized Form
Methods inherited from interface javax.management.j2ee.statistics.Statistic |
getDescription, getLastSampleTime, getName, getStartTime, getUnit |
current
protected long current
highWaterMark
protected long highWaterMark
lowWaterMark
protected long lowWaterMark
RangeStatisticImpl
public RangeStatisticImpl(String pName,
String pUnit,
String pDescription)
- Default (no-args) constructor
getCurrent
public long getCurrent()
- Specified by:
getCurrent
in interface javax.management.j2ee.statistics.RangeStatistic
- Returns:
- The value of Current
getHighWaterMark
public long getHighWaterMark()
- Specified by:
getHighWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
- Returns:
- The value of HighWaterMark
getLowWaterMark
public long getLowWaterMark()
- Specified by:
getLowWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
- Returns:
- The value of LowWaterMark
toString
public String toString()
- Overrides:
toString
in class StatisticImpl
- Returns:
- Debug Information about this Instance
add
public void add()
- Adds a hit to this counter
remove
public void remove()
- Removes a hit to this counter
reset
public void reset()
- Resets the statistics to the initial values
- Overrides:
reset
in class StatisticImpl
set
public void set(long current)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.