Class Slf4jMdcMetricsReporterFactory
- java.lang.Object
-
- de.hybris.platform.metrics.dropwizard.Slf4jMdcMetricsReporterFactory
-
- All Implemented Interfaces:
MetricsReporterFactory
public class Slf4jMdcMetricsReporterFactory extends java.lang.Object implements MetricsReporterFactory
-
-
Constructor Summary
Constructors Constructor Description Slf4jMdcMetricsReporterFactory()
-
Method Summary
All Methods Instance Methods Concrete 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
public com.codahale.metrics.ScheduledReporter createMetricReporter(com.codahale.metrics.MetricRegistry metricRegistry, java.lang.String reporterName, com.codahale.metrics.MetricFilter metricFilter, java.util.concurrent.ScheduledExecutorService executorService)- Specified by:
createMetricReporterin interfaceMetricsReporterFactory- Returns:
- new metric reporter for provided
metricRegistry, with providedreporterNameand using providedmetricFilter. The thread that is used to send metric values should use providedexecutorService
-
getMetricFilter
public com.codahale.metrics.MetricFilter getMetricFilter(java.util.Map<java.lang.String,java.lang.String> filters)
- Specified by:
getMetricFilterin interfaceMetricsReporterFactory- 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
-
-