Package com.sun.ejb.base.stats
Class StatsImpl
- java.lang.Object
-
- com.sun.ejb.base.stats.StatsImpl
-
- All Implemented Interfaces:
Stats
- Direct Known Subclasses:
StatefulSessionStoreStatsImpl
public abstract class StatsImpl extends Object implements Stats
Base class for all the StatsImpl. Also provides a couple of methods for MonitorListener- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStatsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticgetStatistic(String statName)Get a Statistic by name.String[]getStatisticNames()Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports.Statistic[]getStatistics()Returns an array containing all of the Statistic objects supported by this Stats object.protected voidinitialize(String statInterfaceName)StringstatToString()
-
-
-
Field Detail
-
_logger
protected static final Logger _logger
-
-
Method Detail
-
initialize
protected void initialize(String statInterfaceName)
-
getStatistic
public Statistic getStatistic(String statName)
Description copied from interface:StatsGet a Statistic by name.- Specified by:
getStatisticin interfaceStats
-
getStatisticNames
public String[] getStatisticNames()
Description copied from interface:StatsReturns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports. Attributes named in the list must correspond to attributes that will return a Statistic object of the appropriate type which contains valid performance data. The return value of attributes in the Stats submodel that are not included in the statisticNames list must be null. For each name in the statisticNames list there must be one Statistic with the same name in the statistics list.- Specified by:
getStatisticNamesin interfaceStats
-
getStatistics
public Statistic[] getStatistics()
Description copied from interface:StatsReturns an array containing all of the Statistic objects supported by this Stats object.- Specified by:
getStatisticsin interfaceStats
-
statToString
public String statToString()
-
-