org.codehaus.activemq.management
Class StatisticImpl
java.lang.Object
org.codehaus.activemq.management.StatisticImpl
- All Implemented Interfaces:
- Resettable, Statistic
- Direct Known Subclasses:
- BoundaryStatisticImpl, CountStatisticImpl, RangeStatisticImpl, TimeStatisticImpl
- public class StatisticImpl
- extends Object
- implements Statistic, Resettable
Base class for a Statistic implementation
- Version:
- $Revision: 1.1 $
StatisticImpl
public StatisticImpl(String name,
String unit,
String description)
reset
public void reset()
- Description copied from interface:
Resettable
- Reset the statistic
- Specified by:
reset
in interface Resettable
updateSampleTime
protected void updateSampleTime()
toString
public String toString()
getName
public String getName()
- Specified by:
getName
in interface Statistic
getUnit
public String getUnit()
- Specified by:
getUnit
in interface Statistic
getDescription
public String getDescription()
- Specified by:
getDescription
in interface Statistic
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interface Statistic
getLastSampleTime
public long getLastSampleTime()
- Specified by:
getLastSampleTime
in interface Statistic
appendFieldDescription
protected void appendFieldDescription(StringBuffer buffer)
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.