Interface MetricsReporterFactory
-
- All Known Implementing Classes:
Slf4jMdcMetricsReporterFactory
public interface MetricsReporterFactoryInterface for metric reporter factory. The implementations of this interface should be able to create metric reporters - objects that will be responsible for sending gathered metrics to other systems
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.codahale.metrics.ScheduledReportercreateMetricReporter(com.codahale.metrics.MetricRegistry metricRegistry, java.lang.String reporterName, com.codahale.metrics.MetricFilter metricFilter, java.util.concurrent.ScheduledExecutorService executorService)com.codahale.metrics.MetricFiltergetMetricFilter(java.util.Map<java.lang.String,java.lang.String> filters)
-
-
-
Method Detail
-
createMetricReporter
com.codahale.metrics.ScheduledReporter createMetricReporter(com.codahale.metrics.MetricRegistry metricRegistry, java.lang.String reporterName, com.codahale.metrics.MetricFilter metricFilter, java.util.concurrent.ScheduledExecutorService executorService)- Returns:
- new metric reporter for provided
metricRegistry, with providedreporterNameand using providedmetricFilter. The thread that is used to send metric values should use providedexecutorService
-
getMetricFilter
com.codahale.metrics.MetricFilter getMetricFilter(java.util.Map<java.lang.String,java.lang.String> filters)
- Parameters:
filters- Map of filter definitions that should be recalculated into one instance ofMetricFilter- Returns:
- the instance of
MetricFilterthat will take into account all provided filter definitions
-
-