Package com.lightbend.cinnamon.producer
Class Producer
- java.lang.Object
-
- com.lightbend.cinnamon.producer.Producer
-
- Direct Known Subclasses:
JmxImporter
,JvmMetricsProducer
public abstract class Producer extends java.lang.Object
Producer
abstraction for creating custom metric and event producers.The implementation class should accept a
Backends
parameter, which can be used to add custom metrics and events to be reported to all configured backends.Config
can be accessed usingbackends.getConfig()
.Logger
s can be created usingbackends.getLoggingProvider().get(<class or name>)
. Any other classes or resources will need to be accessed statically.
-
-
Constructor Summary
Constructors Constructor Description Producer()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
stop()
Lifecycle method called when the CinnamonBackends
are stopped, to enable cleanup of any resources acquired by the producer.
-
-
-
Method Detail
-
stop
public abstract void stop()
Lifecycle method called when the CinnamonBackends
are stopped, to enable cleanup of any resources acquired by the producer.
-
-