Class 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 using backends.getConfig(). Loggers can be created using backends.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 Cinnamon Backends are stopped, to enable cleanup of any resources acquired by the producer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Producer

        public Producer()
    • Method Detail

      • stop

        public abstract void stop()
        Lifecycle method called when the Cinnamon Backends are stopped, to enable cleanup of any resources acquired by the producer.