|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.management.stats.StatsImpl
public class StatsImpl
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.
| Constructor Summary | |
|---|---|
StatsImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addStat(String name,
StatisticImpl value)
|
Statistic |
getStatistic(String statisticName)
|
String[] |
getStatisticNames()
|
Statistic[] |
getStatistics()
|
protected void |
removeStat(String name)
Used when the available statistics are dynamic (e.g. depend on the current clients of the service, etc.). |
void |
setLastSampleTime()
Set the lastSampleTime for all statistics to System.currentTimeMillis() |
void |
setStartTime()
Set the startTime for all statistics to System.currentTimeMillis() |
void |
setStartTime(long time)
Set the startTime for all statistics to the given value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatsImpl()
| Method Detail |
|---|
protected void addStat(String name,
StatisticImpl value)
protected void removeStat(String name)
name - The statistic to removepublic void setStartTime()
public void setStartTime(long time)
time - public void setLastSampleTime()
public Statistic getStatistic(String statisticName)
getStatistic in interface Statspublic String[] getStatisticNames()
getStatisticNames in interface Statspublic Statistic[] getStatistics()
getStatistics in interface Stats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||