Package org.apache.activemq.store
Class PersistenceAdapterStatistics
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- org.apache.activemq.store.PersistenceAdapterStatistics
-
- All Implemented Interfaces:
Statistic,Stats,Resettable
public class PersistenceAdapterStatistics extends StatsImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected TimeStatisticImplreadTimeprotected TimeStatisticImplslowCleanupTimeprotected TimeStatisticImplslowReadTimeprotected TimeStatisticImplslowWriteTimeprotected TimeStatisticImplwriteTime-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description PersistenceAdapterStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReadTime(long time)voidaddSlowCleanupTime(long time)voidaddSlowReadTime(long time)voidaddSlowWriteTime(long time)voidaddWriteTime(long time)TimeStatisticImplgetReadTime()TimeStatisticImplgetSlowCleanupTime()TimeStatisticImplgetSlowReadTime()TimeStatisticImplgetSlowWriteTime()TimeStatisticImplgetWriteTime()voidreset()Reset the statisticvoidsetEnabled(boolean enabled)voidsetParent(PersistenceAdapterStatistics parent)-
Methods inherited from class org.apache.activemq.management.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatistics
-
Methods inherited from class org.apache.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, toString, updateSampleTime
-
-
-
-
Field Detail
-
slowCleanupTime
protected TimeStatisticImpl slowCleanupTime
-
slowWriteTime
protected TimeStatisticImpl slowWriteTime
-
slowReadTime
protected TimeStatisticImpl slowReadTime
-
writeTime
protected TimeStatisticImpl writeTime
-
readTime
protected TimeStatisticImpl readTime
-
-
Method Detail
-
addSlowCleanupTime
public void addSlowCleanupTime(long time)
-
addSlowWriteTime
public void addSlowWriteTime(long time)
-
addSlowReadTime
public void addSlowReadTime(long time)
-
addWriteTime
public void addWriteTime(long time)
-
addReadTime
public void addReadTime(long time)
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabledin classStatisticImpl- Parameters:
enabled- the enabled to set
-
getSlowCleanupTime
public TimeStatisticImpl getSlowCleanupTime()
-
getSlowWriteTime
public TimeStatisticImpl getSlowWriteTime()
-
getSlowReadTime
public TimeStatisticImpl getSlowReadTime()
-
getWriteTime
public TimeStatisticImpl getWriteTime()
-
getReadTime
public TimeStatisticImpl getReadTime()
-
reset
public void reset()
Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable- Overrides:
resetin classStatsImpl
-
setParent
public void setParent(PersistenceAdapterStatistics parent)
-
-