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:
javax.management.j2ee.statistics.Statistic, javax.management.j2ee.statistics.Stats, Resettable
Direct Known Subclasses:
ConnectionStatistics, ConnectorStatistics, DestinationStatistics, JCAConnectionStatsImpl, JCAStatsImpl, JMSConnectionStatsImpl, JMSEndpointStatsImpl, JMSSessionStatsImpl, JMSStatsImpl

public class StatsImpl
extends StatisticImpl
implements javax.management.j2ee.statistics.Stats, Resettable

Base class for a Stats implementation


Field Summary
 
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
 
Constructor Summary
StatsImpl()
           
StatsImpl(java.util.Set<StatisticImpl> set)
           
 
Method Summary
protected  void addStatistic(java.lang.String name, StatisticImpl statistic)
           
 javax.management.j2ee.statistics.Statistic getStatistic(java.lang.String name)
           
 java.lang.String[] getStatisticNames()
           
 javax.management.j2ee.statistics.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(java.util.Set<StatisticImpl> set)
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 javax.management.j2ee.statistics.Statistic getStatistic(java.lang.String name)
Specified by:
getStatistic in interface javax.management.j2ee.statistics.Stats

getStatisticNames

public java.lang.String[] getStatisticNames()
Specified by:
getStatisticNames in interface javax.management.j2ee.statistics.Stats

getStatistics

public javax.management.j2ee.statistics.Statistic[] getStatistics()
Specified by:
getStatistics in interface javax.management.j2ee.statistics.Stats

addStatistic

protected void addStatistic(java.lang.String name,
                            StatisticImpl statistic)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.