org.apache.activemq.management
Class StatsImpl

java.lang.Object
  extended by org.apache.activemq.management.StatisticImpl
      extended by org.apache.activemq.management.StatsImpl
All Implemented Interfaces:
Statistic, Stats, Resettable
Direct Known Subclasses:
ConnectionStatistics, ConnectorStatistics, DestinationStatistics, JCAConnectionStatsImpl, JCAStatsImpl, JMSConnectionStatsImpl, JMSEndpointStatsImpl, JMSSessionStatsImpl, JMSStatsImpl

public class StatsImpl
extends StatisticImpl
implements Stats, Resettable

Base class for a Stats implementation

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
 
Constructor Summary
StatsImpl()
           
StatsImpl(Map<String,StatisticImpl> map)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatsImpl

public StatsImpl()

StatsImpl

public StatsImpl(Map<String,StatisticImpl> map)
Method Detail

reset

public void reset()
Description copied from interface: Resettable
Reset the statistic

Specified by:
reset in interface Resettable
Overrides:
reset in class StatisticImpl

getStatistic

public Statistic getStatistic(String name)
Specified by:
getStatistic in interface Stats

getStatisticNames

public String[] getStatisticNames()
Specified by:
getStatisticNames in interface Stats

getStatistics

public Statistic[] getStatistics()
Specified by:
getStatistics in interface Stats

addStatistic

protected void addStatistic(String name,
                            StatisticImpl statistic)


Copyright © 2009. All Rights Reserved.