|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--juju.reattore.util.BaseStat | +--juju.reattore.util.GaugeStat
Statistic module that manages a gauge. A gauge is a statistic that has a current value that goes up and down, such as the number of connections.
Constructor Summary | |
GaugeStat(java.lang.Class clazz,
java.lang.String leaf)
|
Method Summary | |
void |
dec()
Decreases this gauge. |
long |
getCount()
Get the total number of samples added. |
int |
getCurrent()
Get the current value of the gauge. |
protected java.lang.String |
getDefaultFormat()
Returns the default format string to use. |
protected java.lang.Object[] |
getFormatArgs()
Returns the argument list used in formatting the summary. |
int |
getMaximum()
Get the maximum value this gauge has ever had. |
void |
inc()
Increases this gauge. |
Methods inherited from class juju.reattore.util.BaseStat |
format, getName, setFormat |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GaugeStat(java.lang.Class clazz, java.lang.String leaf)
BaseStat
Method Detail |
public long getCount()
public void inc()
public void dec()
public int getCurrent()
public int getMaximum()
protected java.lang.String getDefaultFormat()
BaseStat
getDefaultFormat
in class BaseStat
BaseStat
protected java.lang.Object[] getFormatArgs()
BaseStat
getFormatArgs
in class BaseStat
BaseStat
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |