public abstract class AbstractMessageStoreStatistics extends StatsImpl
Modifier and Type | Field and Description |
---|---|
protected CountStatisticImpl |
messageCount |
protected SizeStatisticImpl |
messageSize |
enabled
Modifier | Constructor and Description |
---|---|
protected |
AbstractMessageStoreStatistics(boolean enabled,
String countDescription,
String sizeDescription) |
protected |
AbstractMessageStoreStatistics(String countDescription,
String sizeDescription) |
Modifier and Type | Method and Description |
---|---|
CountStatisticImpl |
getMessageCount() |
SizeStatisticImpl |
getMessageSize() |
void |
reset()
Reset the statistic
|
void |
setEnabled(boolean enabled) |
void |
setParent(AbstractMessageStoreStatistics parent) |
addStatistic, getStatistic, getStatisticNames, getStatistics
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, toString, updateSampleTime
protected final CountStatisticImpl messageCount
protected final SizeStatisticImpl messageSize
protected AbstractMessageStoreStatistics(String countDescription, String sizeDescription)
protected AbstractMessageStoreStatistics(boolean enabled, String countDescription, String sizeDescription)
public CountStatisticImpl getMessageCount()
public SizeStatisticImpl getMessageSize()
public void reset()
Resettable
reset
in interface Resettable
reset
in class StatsImpl
public void setEnabled(boolean enabled)
setEnabled
in class StatisticImpl
enabled
- the enabled to setpublic void setParent(AbstractMessageStoreStatistics parent)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.