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
MetricsRegistrywhere metrics for that consumer gets stored.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static MetricsReportergetInstance(String domainName)com.codahale.metrics.MetricRegistrygetMetricsRegistry()
-
-
-
Method Detail
-
getInstance
public static MetricsReporter getInstance(String domainName)
-
getMetricsRegistry
public com.codahale.metrics.MetricRegistry getMetricsRegistry()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-