Class Statistics.NullImplementation

  • All Implemented Interfaces:
    Statistics
    Enclosing interface:
    Statistics

    public static class Statistics.NullImplementation
    extends java.lang.Object
    implements Statistics
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

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

      • NullImplementation

        public NullImplementation()
    • Method Detail

      • register

        public void register​(Handle h)
        Description copied from interface: Statistics
        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.
        Specified by:
        register in interface Statistics
      • remove

        public void remove​(java.lang.String name)
        Description copied from interface: Statistics
        Remove a named handler from the set of working handlers.
        Specified by:
        remove in interface Statistics
      • getConfig

        public com.yahoo.container.StatisticsConfig getConfig()
        Description copied from interface: Statistics
        Get current config used. This may be a null reference, depending on how the instance was constructed.
        Specified by:
        getConfig in interface Statistics
      • purge

        public int purge()
        Description copied from interface: Statistics
        Purges all cancelled Handles from internal Map and Timer.
        Specified by:
        purge in interface Statistics
        Returns:
        return value from java.util.Timer.purge()