Class NBMetricTimer
java.lang.Object
com.codahale.metrics.Timer
io.nosqlbench.nb.api.engine.metrics.instruments.NBMetricTimer
- All Implemented Interfaces:
com.codahale.metrics.Counting,com.codahale.metrics.Metered,com.codahale.metrics.Metric,com.codahale.metrics.Sampling,DeltaSnapshotter,HdrDeltaHistogramAttachment,HdrDeltaHistogramProvider,NBMetric,TimerAttachment,NBLabeledElement
public class NBMetricTimer
extends com.codahale.metrics.Timer
implements DeltaSnapshotter, HdrDeltaHistogramAttachment, TimerAttachment, NBMetric
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codahale.metrics.Timer
com.codahale.metrics.Timer.ContextNested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionNBMetricTimer(NBLabels labels, DeltaHdrHistogramReservoir deltaHdrHistogramReservoir, String description, MetricCategory... categories) -
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.toString()typeName()voidMethods inherited from class com.codahale.metrics.Timer
getCount, getFifteenMinuteRate, getFiveMinuteRate, getMeanRate, getOneMinuteRate, time, time, time, timeSupplier, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description
-
Constructor Details
-
NBMetricTimer
public NBMetricTimer(NBLabels labels, DeltaHdrHistogramReservoir deltaHdrHistogramReservoir, String description, MetricCategory... categories)
-
-
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
-
getLabels
- Specified by:
getLabelsin interfaceNBLabeledElement
-
toString
-
typeName
-
getDescription
- Specified by:
getDescriptionin interfaceNBMetric
-
getCategories
- Specified by:
getCategoriesin interfaceNBMetric
-