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, getStatisticsappendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, toString, updateSampleTimeprotected 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()
Resettablereset in interface Resettablereset in class StatsImplpublic void setEnabled(boolean enabled)
setEnabled in class StatisticImplenabled - the enabled to setpublic void setParent(AbstractMessageStoreStatistics parent)
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.