|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.stat.Stats
public class Stats
Holder of the stats.
| Constructor Summary | |
|---|---|
protected |
Stats()
|
| Method Summary | |
|---|---|
static ComputingStat |
getComputingStat(String name)
Get a computing stat by name (convenience). |
static CounterStat |
getCounterStat(String name)
Get a counter stat by name (convenience). |
static Stats |
getInstance()
Get the singleton Stats instance. |
static Stat |
getStat(String name)
Get the stat with the given name. |
static Stat |
getStat(String name,
Class<? extends Stat> kind)
Get a stat by name. |
Map<String,Stat> |
getStats()
Get all known stats. |
static void |
setInstance(Stats to)
Set the singleton stats instance. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Stats()
| Method Detail |
|---|
public static Stats getInstance()
public static void setInstance(Stats to)
public static Stat getStat(String name,
Class<? extends Stat> kind)
name - the name of the statkind - the kind of stat object to get
public static CounterStat getCounterStat(String name)
name - name of the stat
public static ComputingStat getComputingStat(String name)
name - name of the stat
public static Stat getStat(String name)
name - the name of the stat
public Map<String,Stat> getStats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||