org.apache.activemq.management
Class StatisticImpl
java.lang.Object
org.apache.activemq.management.StatisticImpl
- All Implemented Interfaces:
- Statistic, Resettable
- Direct Known Subclasses:
- BoundaryStatisticImpl, CountStatisticImpl, PollCountStatisticImpl, RangeStatisticImpl, StatsImpl, TimeStatisticImpl
public class StatisticImpl
- extends Object
- implements Statistic, Resettable
Base class for a Statistic implementation
- Version:
- $Revision: 1.2 $
Field Summary |
protected boolean |
enabled
|
enabled
protected boolean enabled
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()
- Overrides:
toString
in class Object
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
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
setEnabled
public void setEnabled(boolean enabled)
- Parameters:
enabled
- the enabled to set
isDoReset
public boolean isDoReset()
- Returns:
- the doReset
setDoReset
public void setDoReset(boolean doReset)
- Parameters:
doReset
- the doReset to set
appendFieldDescription
protected void appendFieldDescription(StringBuffer buffer)
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.