Class MetricsReporter

java.lang.Object
org.opendaylight.controller.cluster.reporting.MetricsReporter
All Implemented Interfaces:
AutoCloseable

public class MetricsReporter extends Object implements AutoCloseable
Maintains metrics registry that is provided to reporters. At the moment only one reporter exists JmxReporter. More reporters can be added.

The consumers of this class will only be interested in MetricsRegistry where metrics for that consumer gets stored.

  • Method Details

    • getInstance

      public static MetricsReporter getInstance(String domainName)
    • getMetricsRegistry

      public com.codahale.metrics.MetricRegistry getMetricsRegistry()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable