Package org.apache.activemq.management
Class StatsImpl
- java.lang.Object
-
- org.apache.activemq.management.StatisticImpl
-
- org.apache.activemq.management.StatsImpl
-
- All Implemented Interfaces:
Statistic
,Stats
,Resettable
- Direct Known Subclasses:
AbstractMessageStoreStatistics
,ConnectionStatistics
,ConnectorStatistics
,DestinationStatistics
,JCAConnectionStatsImpl
,JCAStatsImpl
,JMSConnectionStatsImpl
,JMSEndpointStatsImpl
,JMSSessionStatsImpl
,JMSStatsImpl
,MessageStoreStatistics
,NetworkBridgeStatistics
,PersistenceAdapterStatistics
,RegionStatistics
,SubscriptionStatistics
public class StatsImpl extends StatisticImpl implements Stats, Resettable
Base class for a Stats implementation
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description StatsImpl()
StatsImpl(Set<StatisticImpl> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addStatistic(String name, StatisticImpl statistic)
Statistic
getStatistic(String name)
String[]
getStatisticNames()
Statistic[]
getStatistics()
void
reset()
Reset the statistic-
Methods inherited from class org.apache.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTime
-
-
-
-
Constructor Detail
-
StatsImpl
public StatsImpl()
-
StatsImpl
public StatsImpl(Set<StatisticImpl> set)
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classStatisticImpl
-
getStatistic
public Statistic getStatistic(String name)
- Specified by:
getStatistic
in interfaceStats
-
getStatisticNames
public String[] getStatisticNames()
- Specified by:
getStatisticNames
in interfaceStats
-
getStatistics
public Statistic[] getStatistics()
- Specified by:
getStatistics
in interfaceStats
-
addStatistic
protected void addStatistic(String name, StatisticImpl statistic)
-
-