org.apache.geronimo.management.stats
Class StatsImpl
java.lang.Object
org.apache.geronimo.management.stats.StatsImpl
- All Implemented Interfaces:
- Serializable, javax.management.j2ee.statistics.Stats
- Direct Known Subclasses:
- JVMStatsImpl
- public class StatsImpl
- extends Object
- implements javax.management.j2ee.statistics.Stats, Serializable
Geronimo implementation of the JSR-77 Stats interface. Dynamically tracks
available statistics for its subclasses, to make it easy to iterate
available statistics without knowing exactly what kind of class you're
looking at. Not sure when you'd want to do that, but hey.
- Version:
- $Rev: 392847 $ $Date: 2006-04-10 00:58:39 +0200 (Mon, 10 Apr 2006) $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatsImpl
public StatsImpl()
addStat
protected void addStat(String name,
javax.management.j2ee.statistics.Statistic value)
removeStat
protected void removeStat(String name)
- Used when the available statistics are dynamic (e.g. depend on the
current clients of the service, etc.).
- Parameters:
name
- The statistic to remove
getStatistic
public javax.management.j2ee.statistics.Statistic getStatistic(String statisticName)
- Specified by:
getStatistic
in interface javax.management.j2ee.statistics.Stats
getStatisticNames
public 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
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.