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 existsJmxReporter
. More reporters can be added.The consumers of this class will only be interested in
MetricsRegistry
where metrics for that consumer gets stored.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static MetricsReporter
getInstance(String domainName)
com.codahale.metrics.MetricRegistry
getMetricsRegistry()
-
-
-
Method Detail
-
getInstance
public static MetricsReporter getInstance(String domainName)
-
getMetricsRegistry
public com.codahale.metrics.MetricRegistry getMetricsRegistry()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-