org.jboss.management.j2ee.statistics
Class StatsBase

java.lang.Object
  extended byorg.jboss.management.j2ee.statistics.StatsBase
All Implemented Interfaces:
java.io.Serializable, Stats (src)
Direct Known Subclasses:
EJBStatsImpl (src) , JCAConnectionStatsImpl (src) , JCAStatsImpl (src) , JMSConnectionStatsImpl (src) , JMSEndpointStatsImpl (src) , JMSSessionStatsImpl (src) , JMSStatsImpl (src) , JTAStatsImpl (src) , JVMStatsImpl (src) , ServletStatsImpl (src)

public class StatsBase
extends java.lang.Object
implements Stats (src) , java.io.Serializable

The base JSR77.6.10 Stats interface base implementation

See Also:
Serialized Form

Constructor Summary
StatsBase()
           
StatsBase(java.util.Map statistics)
           
 
Method Summary
 void addStatistic(java.lang.String name, Statistic (src)  statistic)
          Add or replace Statistic in the Stats collection.
 Statistic (src) getStatistic(java.lang.String name)
          Access a Statistic by its name.
 java.lang.String[] getStatisticNames()
          Access all the Statistics names
 Statistic (src) [] getStatistics()
          Access all the Statistics
 void reset()
          Reset all StatisticImpl objects
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatsBase

public StatsBase()

StatsBase

public StatsBase(java.util.Map statistics)
Method Detail

getStatisticNames

public java.lang.String[] getStatisticNames()
Access all the Statistics names

Specified by:
getStatisticNames in interface Stats (src)
Returns:
An array of the names of the statistics held in the Stats object

getStatistics

public Statistic (src) [] getStatistics()
Access all the Statistics

Specified by:
getStatistics in interface Stats (src)
Returns:
An array of the Statistic held in the Stats object

getStatistic

public Statistic (src)  getStatistic(java.lang.String name)
Access a Statistic by its name.

Specified by:
getStatistic in interface Stats (src)
Parameters:
name -
Returns:

reset

public void reset()
Reset all StatisticImpl objects


toString

public java.lang.String toString()

addStatistic

public void addStatistic(java.lang.String name,
                         Statistic (src)  statistic)
Add or replace Statistic in the Stats collection.

Parameters:
name - Name of the Statistic instance
statistic - Statistic to be added