Package io.nosqlbench.api.engine.metrics
Class NicerTimer
java.lang.Object
com.codahale.metrics.Timer
io.nosqlbench.api.engine.metrics.NicerTimer
- All Implemented Interfaces:
com.codahale.metrics.Counting,com.codahale.metrics.Metered,com.codahale.metrics.Metric,com.codahale.metrics.Sampling,DeltaSnapshotter,HdrDeltaHistogramAttachment,HdrDeltaHistogramProvider,TimerAttachment
public class NicerTimer
extends com.codahale.metrics.Timer
implements DeltaSnapshotter, HdrDeltaHistogramAttachment, TimerAttachment
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codahale.metrics.Timer
com.codahale.metrics.Timer.Context -
Constructor Summary
ConstructorsConstructorDescriptionNicerTimer(String metricName, DeltaHdrHistogramReservoir deltaHdrHistogramReservoir) -
Method Summary
Modifier and TypeMethodDescriptionAttach a metric.com.codahale.metrics.TimerattachTimer(com.codahale.metrics.Timer timer) getDeltaSnapshot(long cacheTimeMillis) org.HdrHistogram.HistogramCreate a new interval histogram from the current data, then reset the histogram reservoir.voidMethods inherited from class com.codahale.metrics.Timer
getCount, getFifteenMinuteRate, getFiveMinuteRate, getMeanRate, getOneMinuteRate, time, time, time, timeSupplier, update
-
Constructor Details
-
NicerTimer
-
-
Method Details
-
getSnapshot
- Specified by:
getSnapshotin interfacecom.codahale.metrics.Sampling- Overrides:
getSnapshotin classcom.codahale.metrics.Timer
-
getDeltaReader
- Specified by:
getDeltaReaderin interfaceDeltaSnapshotter
-
getDeltaSnapshot
- Specified by:
getDeltaSnapshotin interfaceDeltaSnapshotter
-
attachHdrDeltaHistogram
Description copied from interface:HdrDeltaHistogramAttachmentAttach a metric.- Specified by:
attachHdrDeltaHistogramin interfaceHdrDeltaHistogramAttachment- Returns:
- the attached metric, after adding to the mirrors for the metric.
-
attachTimer
public com.codahale.metrics.Timer attachTimer(com.codahale.metrics.Timer timer) - Specified by:
attachTimerin interfaceTimerAttachment
-
getNextHdrDeltaHistogram
public org.HdrHistogram.Histogram getNextHdrDeltaHistogram()Description copied from interface:HdrDeltaHistogramProviderCreate a new interval histogram from the current data, then reset the histogram reservoir.- Specified by:
getNextHdrDeltaHistogramin interfaceHdrDeltaHistogramProvider- Returns:
- the new interval histogram
-
update
- Overrides:
updatein classcom.codahale.metrics.Timer
-