Class MetricsExample
java.lang.Object
org.opendaylight.serviceutils.metrics.sample.MetricsExample
- All Implemented Interfaces:
AutoCloseable
,Runnable
Example illustrating usage of metrics API, and demo.
This can be run either via a simple (standalone) main(),
see MetricsExampleMain and MetricsPrometheusExampleMain,
or in Karaf under OSGi by "feature:install
odl-infrautils-metrics-sample
" (in which case you
will need to feature:install an implementation of
MetricProvider, first).
- Author:
- Michael Vorburger.ch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MetricsExample
-
-
Method Details
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
run
public void run()
-