Interface StatsProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      StatsLogger getStatsLogger​(java.lang.String scope)
      Return the stats logger to a given scope.
      default java.lang.String getStatsName​(java.lang.String... statsComponents)
      Return the fully qualified stats name comprised of given statsComponents.
      void start​(org.apache.commons.configuration.Configuration conf)
      Initialize the stats provider by loading the given configuration conf.
      void stop()
      Close the stats provider.
      default void writeAllMetrics​(java.io.Writer writer)  
    • Method Detail

      • start

        void start​(org.apache.commons.configuration.Configuration conf)
        Initialize the stats provider by loading the given configuration conf.
        Parameters:
        conf - Configuration to configure the stats provider.
      • stop

        void stop()
        Close the stats provider.
      • writeAllMetrics

        default void writeAllMetrics​(java.io.Writer writer)
                              throws java.io.IOException
        Parameters:
        writer -
        Throws:
        java.io.IOException
      • getStatsLogger

        StatsLogger getStatsLogger​(java.lang.String scope)
        Return the stats logger to a given scope.
        Parameters:
        scope - Scope for the given stats
        Returns:
        stats logger for the given scope
      • getStatsName

        default java.lang.String getStatsName​(java.lang.String... statsComponents)
        Return the fully qualified stats name comprised of given statsComponents.
        Parameters:
        statsComponents - stats components to comprise the fully qualified stats name
        Returns:
        the fully qualified stats name