Interface Statistics

All Known Implementing Classes:
Statistics.NullImplementation, StatisticsImpl

@Deprecated public interface Statistics
Deprecated.
Will be removed on Vespa 8. If required by a method, there exists an alternative to be used instead.
Interface used for registering statistics values and counters for logging.
Author:
steinar, Tony Vaagenes
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Deprecated.
     
  • Field Summary

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

    Modifier and Type
    Method
    Description
    Deprecated.
    Get current config used.
    int
    Deprecated.
    Purges all cancelled Handles from internal Map and Timer.
    void
    Deprecated.
    Add a new handle to be scheduled for periodic logging.
    void
    remove(String name)
    Deprecated.
    Remove a named handler from the set of working handlers.
  • Field Details

    • nullImplementation

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

    • register

      void register(Handle h)
      Deprecated.
      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(String name)
      Deprecated.
      Remove a named handler from the set of working handlers.
    • getConfig

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

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