Package io.engineblock.metrics
Class ClassicHistoListener
- java.lang.Object
-
- io.engineblock.metrics.CapabilityHook<HistogramAttachment>
-
- io.engineblock.metrics.ClassicHistoListener
-
- All Implemented Interfaces:
com.codahale.metrics.MetricRegistryListener,java.util.EventListener
public class ClassicHistoListener extends CapabilityHook<HistogramAttachment>
-
-
Constructor Summary
Constructors Constructor Description ClassicHistoListener(com.codahale.metrics.MetricRegistry metricRegistry, java.lang.String sessionName, java.lang.String prefix, java.util.regex.Pattern pattern, java.lang.String interval, java.util.concurrent.TimeUnit nanoseconds)
-
Method Summary
Modifier and Type Method Description protected java.lang.Class<HistogramAttachment>getCapabilityClass()voidonCapableAdded(java.lang.String name, HistogramAttachment capable)voidonCapableRemoved(java.lang.String name, HistogramAttachment capable)-
Methods inherited from class io.engineblock.metrics.CapabilityHook
onCounterAdded, onCounterRemoved, onGaugeAdded, onGaugeRemoved, onHistogramAdded, onHistogramRemoved, onMeterAdded, onMeterRemoved, onTimerAdded, onTimerRemoved
-
-
-
-
Method Detail
-
onCapableAdded
public void onCapableAdded(java.lang.String name, HistogramAttachment capable)- Specified by:
onCapableAddedin classCapabilityHook<HistogramAttachment>
-
onCapableRemoved
public void onCapableRemoved(java.lang.String name, HistogramAttachment capable)- Specified by:
onCapableRemovedin classCapabilityHook<HistogramAttachment>
-
getCapabilityClass
protected java.lang.Class<HistogramAttachment> getCapabilityClass()
- Specified by:
getCapabilityClassin classCapabilityHook<HistogramAttachment>
-
-