|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StopwatchMXBean
Interface for MX Bean representing a particular Stopwatch. It is not created
by default when JMX is activated - it must be created explicitely.
JmxRegisterCallback can be used to automate this.
| Method Summary | |
|---|---|
void |
addTime(long ns)
Adds split time in nanoseconds to total time of the stopwatch. |
long |
getActive()
Returns current number of measured splits (concurrently running). |
long |
getCounter()
Returns usage count of the stopwatch. |
long |
getLast()
Returns value of the last added split - wheter it was added directly or with stop method. |
String |
getLastAsString()
Returns value of the last added split as formatted string. |
long |
getMax()
Returns maximal time split value in nanoseconds. |
long |
getMaxActive()
Returns peek value of active concurrent splits. |
long |
getMaxActiveTimestamp()
Retruns ms timestamp when the last peek of the active split count occured. |
long |
getMaxTimestamp()
Returns ms timestamp when the max value was measured. |
double |
getMean()
Returns mean value (average) of all measured values. |
long |
getMin()
Returns minimal time split value in nanoseconds. |
long |
getMinTimestamp()
Returns ms timestamp when the min value was measured. |
double |
getStandardDeviation()
Returns standard deviation for all measured values. |
long |
getTotal()
Returns total sum of all split times in nanoseconds. |
double |
getVariance()
Returns unbiased estimate of the population variance. |
double |
getVarianceN()
Returns variance value of all measured values (entire population). |
StopwatchSample |
sample()
Samples Simon values and returns them in a Java Bean derived from Sample interface. |
StopwatchSample |
sampleAndReset()
Samples Simon values and returns them in a Java Bean derived from Sample interface and resets the Simon. |
| Methods inherited from interface org.javasimon.jmx.SimonSuperMXBean |
|---|
getFirstUsage, getFirstUsageAsString, getChildrenNames, getLastUsage, getLastUsageAsString, getName, getNote, getParentName, getState, getType, isEnabled, reset, setNote, setState |
| Method Detail |
|---|
void addTime(long ns)
ns - split timeStopwatch.addTime(long)long getTotal()
Stopwatch.getTotal()long getLast()
Stopwatch.getLast()String getLastAsString()
long getCounter()
addTime and
stop - that means that it's updated every time the next time split is added.
Stopwatch.getCounter()long getMax()
Stopwatch.getMax()long getMin()
Stopwatch.getMin()long getMaxTimestamp()
Stopwatch.getMaxTimestamp()long getMinTimestamp()
Stopwatch.getMinTimestamp()long getActive()
Stopwatch.getActive()long getMaxActive()
Stopwatch.getMaxActive()long getMaxActiveTimestamp()
Stopwatch.getMaxActiveTimestamp()double getMean()
Stopwatch.getMean()double getStandardDeviation()
Stopwatch.getStandardDeviation()double getVariance()
Stopwatch.getVariance()double getVarianceN()
Stopwatch.getVarianceN()StopwatchSample sample()
SimonSuperMXBean
sample in interface SimonSuperMXBeanStopwatchSample sampleAndReset()
SimonSuperMXBean
sampleAndReset in interface SimonSuperMXBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||