public interface StopwatchMXBean extends SimonSuperMXBean
Stopwatch
. It is not created
by default when JMX is activated - it must be created explicitly.
JmxRegisterCallback
can be used to automate this.Modifier and Type | Method and Description |
---|---|
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 - whether 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()
Returns ms timestamp when the last peek of the active split count occurred.
|
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 |
sampleIncrement(String key)
Samples increment in Simon values since the previous call of this method with the
same key.
|
getChildrenNames, getFirstUsage, getFirstUsageAsString, getLastUsage, getLastUsageAsString, getName, getNote, getParentName, getState, getType, isEnabled, setNote, setState, stopIncrementalSampling
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 SimonSuperMXBean
StopwatchSample sampleIncrement(String key)
SimonSuperMXBean
SimonSuperMXBean.sample()
. Any subsequent calls with the key
provide increments.
Clients should use a unique key (GUID, host name, etc.), to avoid interference
with other clients.sampleIncrement
in interface SimonSuperMXBean
key
- key used to access incremental sampleSample
with value incrementsCopyright © 2019. All rights reserved.