当前页面:
在线文档首页 >
JBoss 3.2.7 management API Documentation 英文版文档
CountStatisticImpl (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档
org.jboss.management.j2ee.statistics
Class CountStatisticImpl
java.lang.Object
org.jboss.management.j2ee.statistics.StatisticImpl
org.jboss.management.j2ee.statistics.CountStatisticImpl
- All Implemented Interfaces:
- javax.management.j2ee.statistics.CountStatistic, Serializable, javax.management.j2ee.statistics.Statistic
- public class CountStatisticImpl
- extends StatisticImpl
- implements javax.management.j2ee.statistics.CountStatistic
This class is the JBoss specific Counter Statistics class
- Version:
- $Revision: 1.1.2.1 $
- Author:
- Marc Fleury, Andreas Schaefer
- See Also:
- Serialized Form
Field Summary |
protected long |
count
|
Method Summary |
void |
add()
Adds a hit to this counter |
long |
getCount()
|
void |
remove()
Removes a hit to this counter |
void |
reset()
Resets the statistics to the initial values |
void |
set(long count)
Set the current value of the count |
String |
toString()
|
Methods inherited from interface javax.management.j2ee.statistics.Statistic |
getDescription, getLastSampleTime, getName, getStartTime, getUnit |
count
protected long count
CountStatisticImpl
public CountStatisticImpl(String name,
String units,
String description)
- Create a CountStatistic
- 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.CountStatistic
- Returns:
- The value of Count
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 count)
- Set the current value of the count
- Parameters:
count
- the new count
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.