public class PersistenceAdapterStatistics extends StatsImpl
Modifier and Type | Field and Description |
---|---|
protected TimeStatisticImpl |
readTime |
protected TimeStatisticImpl |
writeTime |
enabled
Constructor and Description |
---|
PersistenceAdapterStatistics() |
Modifier and Type | Method and Description |
---|---|
void |
addReadTime(long time) |
void |
addWriteTime(long time) |
TimeStatisticImpl |
getReadTime() |
TimeStatisticImpl |
getWriteTime() |
void |
reset()
Reset the statistic
|
void |
setEnabled(boolean enabled) |
void |
setParent(PersistenceAdapterStatistics parent) |
addStatistic, getStatistic, getStatisticNames, getStatistics
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, toString, updateSampleTime
protected TimeStatisticImpl writeTime
protected TimeStatisticImpl readTime
public PersistenceAdapterStatistics()
public void addWriteTime(long time)
public void addReadTime(long time)
public void setEnabled(boolean enabled)
setEnabled
in class StatisticImpl
enabled
- the enabled to setpublic TimeStatisticImpl getWriteTime()
public TimeStatisticImpl getReadTime()
public void reset()
Resettable
reset
in interface Resettable
reset
in class StatsImpl
public void setParent(PersistenceAdapterStatistics parent)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.