Interface PinotMetricsFactory
-
public interface PinotMetricsFactoryFactory for generating objects of Pinot metrics.
-
-
Method Summary
Modifier and Type Method Description StringgetMetricsFactoryName()Returns the name of metrics factory.PinotMetricsRegistrygetPinotMetricsRegistry()GetsPinotMetricsRegistry.voidinit(PinotConfiguration metricsConfiguration)Initializes the Pinot metrics factory.<T> PinotGauge<T>makePinotGauge(Function<Void,T> condition)Makes aPinotGaugegiven a function.PinotJmxReportermakePinotJmxReporter(PinotMetricsRegistry metricsRegistry)Makes aPinotJmxReportergiven aPinotMetricsRegistry.PinotMetricNamemakePinotMetricName(Class<?> klass, String name)Makes aPinotMetricNamegiven the class and the metric name.
-
-
-
Method Detail
-
init
void init(PinotConfiguration metricsConfiguration)
Initializes the Pinot metrics factory.
-
getPinotMetricsRegistry
PinotMetricsRegistry getPinotMetricsRegistry()
GetsPinotMetricsRegistry. There should be only one such instance in everyPinotMetricsRegistry.
-
makePinotMetricName
PinotMetricName makePinotMetricName(Class<?> klass, String name)
Makes aPinotMetricNamegiven the class and the metric name.
-
makePinotGauge
<T> PinotGauge<T> makePinotGauge(Function<Void,T> condition)
Makes aPinotGaugegiven a function.
-
makePinotJmxReporter
PinotJmxReporter makePinotJmxReporter(PinotMetricsRegistry metricsRegistry)
Makes aPinotJmxReportergiven aPinotMetricsRegistry.
-
getMetricsFactoryName
String getMetricsFactoryName()
Returns the name of metrics factory.
-
-