Class YammerMetricsRegistry
- java.lang.Object
-
- org.apache.pinot.plugin.metrics.yammer.YammerMetricsRegistry
-
- All Implemented Interfaces:
PinotMetricsRegistry
public class YammerMetricsRegistry extends Object implements PinotMetricsRegistry
-
-
Constructor Summary
Constructors Constructor Description YammerMetricsRegistry()YammerMetricsRegistry(com.yammer.metrics.core.Clock clock)
-
Method Summary
Modifier and Type Method Description voidaddListener(PinotMetricsRegistryListener listener)Map<PinotMetricName,PinotMetric>allMetrics()ObjectgetMetricsRegistry()PinotCounternewCounter(PinotMetricName name)<T> PinotGauge<T>newGauge(PinotMetricName name, PinotGauge<T> gauge)PinotHistogramnewHistogram(PinotMetricName name, boolean biased)PinotMeternewMeter(PinotMetricName name, String eventType, TimeUnit unit)PinotTimernewTimer(PinotMetricName name, TimeUnit durationUnit, TimeUnit rateUnit)voidremoveMetric(PinotMetricName name)voidshutdown()
-
-
-
Method Detail
-
removeMetric
public void removeMetric(PinotMetricName name)
- Specified by:
removeMetricin interfacePinotMetricsRegistry
-
newGauge
public <T> PinotGauge<T> newGauge(PinotMetricName name, PinotGauge<T> gauge)
- Specified by:
newGaugein interfacePinotMetricsRegistry
-
newMeter
public PinotMeter newMeter(PinotMetricName name, String eventType, TimeUnit unit)
- Specified by:
newMeterin interfacePinotMetricsRegistry
-
newCounter
public PinotCounter newCounter(PinotMetricName name)
- Specified by:
newCounterin interfacePinotMetricsRegistry
-
newTimer
public PinotTimer newTimer(PinotMetricName name, TimeUnit durationUnit, TimeUnit rateUnit)
- Specified by:
newTimerin interfacePinotMetricsRegistry
-
newHistogram
public PinotHistogram newHistogram(PinotMetricName name, boolean biased)
- Specified by:
newHistogramin interfacePinotMetricsRegistry
-
allMetrics
public Map<PinotMetricName,PinotMetric> allMetrics()
- Specified by:
allMetricsin interfacePinotMetricsRegistry
-
addListener
public void addListener(PinotMetricsRegistryListener listener)
- Specified by:
addListenerin interfacePinotMetricsRegistry
-
getMetricsRegistry
public Object getMetricsRegistry()
- Specified by:
getMetricsRegistryin interfacePinotMetricsRegistry
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacePinotMetricsRegistry
-
-