org.apache.geronimo.management.stats
Class StatsImpl
java.lang.Object
org.apache.geronimo.management.stats.StatsImpl
- All Implemented Interfaces:
- Serializable, Stats
- Direct Known Subclasses:
- JVMStatsImpl
public class StatsImpl
- extends Object
- implements 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.
- 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,
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 Statistic getStatistic(String statisticName)
- Specified by:
getStatistic
in interface Stats
getStatisticNames
public String[] getStatisticNames()
- Specified by:
getStatisticNames
in interface Stats
getStatistics
public Statistic[] getStatistics()
- Specified by:
getStatistics
in interface Stats
Copyright © 2006 Apache Software Foundation. All Rights Reserved.