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 TimeStatisticImpl
readTime
protected TimeStatisticImpl
slowCleanupTime
protected TimeStatisticImpl
slowReadTime
protected TimeStatisticImpl
slowWriteTime
protected TimeStatisticImpl
writeTime
-
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 void
addReadTime(long time)
void
addSlowCleanupTime(long time)
void
addSlowReadTime(long time)
void
addSlowWriteTime(long time)
void
addWriteTime(long time)
TimeStatisticImpl
getReadTime()
TimeStatisticImpl
getSlowCleanupTime()
TimeStatisticImpl
getSlowReadTime()
TimeStatisticImpl
getSlowWriteTime()
TimeStatisticImpl
getWriteTime()
void
reset()
Reset the statisticvoid
setEnabled(boolean enabled)
void
setParent(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:
setEnabled
in 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:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classStatsImpl
-
setParent
public void setParent(PersistenceAdapterStatistics parent)
-
-