Package nl.vpro.jmx
Class Counter
java.lang.Object
nl.vpro.jmx.Counter
- All Implemented Interfaces:
CounterMXBean
- Since:
- 1.57
- Author:
- Michiel Meeuwissen
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Counter
(ObjectName name, Duration countWindow, Integer bucketCount, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionstatic Counter.Builder
builder()
long
getCount()
org.meeuw.math.windowed.WindowedLongSummaryStatistics
org.meeuw.math.windowed.WindowedLongSummaryStatistics
getDurationStatistics
(int index) double
getRate()
void
shutdown()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.vpro.jmx.CounterMXBean
getAverageDurationMs, getAverageDurationsMs
-
Constructor Details
-
Counter
-
-
Method Details
-
getCount
public long getCount()- Specified by:
getCount
in interfaceCounterMXBean
-
getRate
public double getRate()- Specified by:
getRate
in interfaceCounterMXBean
-
getRateWindow
- Specified by:
getRateWindow
in interfaceCounterMXBean
-
getAverageDuration
- Specified by:
getAverageDuration
in interfaceCounterMXBean
-
getAverageDurations
- Specified by:
getAverageDurations
in interfaceCounterMXBean
-
getDurationStatistics
public org.meeuw.math.windowed.WindowedLongSummaryStatistics getDurationStatistics() -
getDurationStatistics
public org.meeuw.math.windowed.WindowedLongSummaryStatistics getDurationStatistics(int index) -
shutdown
public void shutdown() -
builder
-
toString
-