org.apache.servicemix.jbi.monitoring.stats
Class StatisticImpl
java.lang.Object
org.apache.servicemix.jbi.monitoring.stats.StatisticImpl
- All Implemented Interfaces:
- Statistic, Resettable
- Direct Known Subclasses:
- CountStatisticImpl, StatsImpl, TimeStatisticImpl
public class StatisticImpl
- extends Object
- implements Statistic, Resettable
Base class for a Statistic implementation
- Version:
- $Revision: 482795 $
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
appendFieldDescription
protected void appendFieldDescription(StringBuffer buffer)
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.