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.ObjectProducerabstraction for creating custom metric and event producers.The implementation class should accept a
Backendsparameter, which can be used to add custom metrics and events to be reported to all configured backends.Configcan be accessed usingbackends.getConfig().Loggers 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 voidstop()Lifecycle method called when the CinnamonBackendsare stopped, to enable cleanup of any resources acquired by the producer.
-
-
-
Method Detail
-
stop
public abstract void stop()
Lifecycle method called when the CinnamonBackendsare stopped, to enable cleanup of any resources acquired by the producer.
-
-