Class Slf4jMdcMetricsReporterFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.codahale.metrics.ScheduledReporter createMetricReporter​(com.codahale.metrics.MetricRegistry metricRegistry, java.lang.String reporterName, com.codahale.metrics.MetricFilter metricFilter, java.util.concurrent.ScheduledExecutorService executorService)  
      com.codahale.metrics.MetricFilter getMetricFilter​(java.util.Map<java.lang.String,​java.lang.String> filters)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Slf4jMdcMetricsReporterFactory

        public Slf4jMdcMetricsReporterFactory()
    • 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:
        createMetricReporter in interface MetricsReporterFactory
        Returns:
        new metric reporter for provided metricRegistry, with provided reporterName and using provided metricFilter. The thread that is used to send metric values should use provided executorService
      • getMetricFilter

        public com.codahale.metrics.MetricFilter getMetricFilter​(java.util.Map<java.lang.String,​java.lang.String> filters)
        Specified by:
        getMetricFilter in interface MetricsReporterFactory
        Parameters:
        filters - Map of filter definitions that should be recalculated into one instance of MetricFilter
        Returns:
        the instance of MetricFilter that will take into account all provided filter definitions