站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 management API Documentation 英文版文档

StatsBase (JBoss/Management API) - JBoss 4.0.1 sp1 management API Documentation 英文版文档


org.jboss.management.j2ee.statistics
Class StatsBase

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

public class StatsBase
extends Object
implements javax.management.j2ee.statistics.Stats, Serializable

The base JSR77.6.10 Stats interface base implementation

Version:
$Revision: 1.5 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
StatsBase()
           
StatsBase(Map statistics)
           
 
Method Summary
 void addStatistic(String name, javax.management.j2ee.statistics.Statistic statistic)
          Add or replace Statistic in the Stats collection.
 javax.management.j2ee.statistics.Statistic getStatistic(String name)
          Access a Statistic by its name.
 String[] getStatisticNames()
          Access all the Statistics names
 javax.management.j2ee.statistics.Statistic[] getStatistics()
          Access all the Statistics
 void reset()
          Reset all StatisticImpl objects
 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(Map statistics)
Method Detail

getStatisticNames

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

Specified by:
getStatisticNames in interface javax.management.j2ee.statistics.Stats
Returns:
An array of the names of the statistics held in the Stats object

getStatistics

public javax.management.j2ee.statistics.Statistic[] getStatistics()
Access all the Statistics

Specified by:
getStatistics in interface javax.management.j2ee.statistics.Stats
Returns:
An array of the Statistic held in the Stats object

getStatistic

public javax.management.j2ee.statistics.Statistic getStatistic(String name)
Access a Statistic by its name.

Specified by:
getStatistic in interface javax.management.j2ee.statistics.Stats
Parameters:
name -
Returns:

reset

public void reset()
Reset all StatisticImpl objects


toString

public String toString()

addStatistic

public void addStatistic(String name,
                         javax.management.j2ee.statistics.Statistic statistic)
Add or replace Statistic in the Stats collection.

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.