Class DefaultMetricsProvider

  • All Implemented Interfaces:
    MetricsProvider

    public class DefaultMetricsProvider
    extends java.lang.Object
    implements MetricsProvider
    Default implementation of MetricsProvider.
    It does not implement a real hierarchy of contexts, but metrics are flattened in a single namespace.
    It is mostly useful to make the legacy 4 letter words interface work as expected.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(java.util.Properties configuration)
      Configure the provider.
      void dump​(java.util.function.BiConsumer<java.lang.String,​java.lang.Object> sink)
      Dumps all metrics as a key-value pair.
      MetricsContext getRootContext()
      Provides access to the root context.
      void resetAllValues()
      Reset all values.
      void start()
      Start the provider.
      void stop()
      Releases resources held by the provider.
      This method must not throw exceptions.
      This method can be called more than once.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait