Interface Statistics

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Statistics nullImplementation
      A null implementation which ignores all calls and returns the default config
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.yahoo.container.StatisticsConfig getConfig()
      Get current config used.
      int purge()
      Purges all cancelled Handles from internal Map and Timer.
      void register​(Handle h)
      Add a new handle to be scheduled for periodic logging.
      void remove​(java.lang.String name)
      Remove a named handler from the set of working handlers.
    • Field Detail

      • nullImplementation

        static final Statistics nullImplementation
        A null implementation which ignores all calls and returns the default config
    • Method Detail

      • register

        void register​(Handle h)
        Add a new handle to be scheduled for periodic logging. If a handle already exists with the same name, it will be cancelled and removed from the internal state of this object.
      • remove

        void remove​(java.lang.String name)
        Remove a named handler from the set of working handlers.
      • getConfig

        com.yahoo.container.StatisticsConfig getConfig()
        Get current config used. This may be a null reference, depending on how the instance was constructed.
      • purge

        int purge()
        Purges all cancelled Handles from internal Map and Timer.
        Returns:
        return value from java.util.Timer.purge()