Class CounterGroup

java.lang.Object
com.yahoo.statistics.Handle
com.yahoo.statistics.CounterGroup

@Deprecated public class CounterGroup extends Handle
Deprecated.
A set of associated counters.
Author:
Steinar Knutsen
  • Constructor Details

    • CounterGroup

      public CounterGroup(String name, Statistics manager)
      Deprecated.
      Parameters:
      name - The symbolic name of this group of counters.
    • CounterGroup

      public CounterGroup(String name, Statistics manager, boolean fetchParametersFromConfig)
      Deprecated.
      Create a basic group of counter which may or may not depend on config.
      Parameters:
      name - The symbolic name of this group of counters.
      manager - the statistics manager acquired by injection
      fetchParametersFromConfig - Whether this Group should be configured from config.
    • CounterGroup

      public CounterGroup(String name, Statistics manager, boolean fetchParametersFromConfig, Callback callback, boolean resetCounter)
      Deprecated.
      Create a group of counters with a callback included.
      Parameters:
      name - The symbolic name of this group of counters.
      manager - the statistics manager acquired by injection
      fetchParametersFromConfig - Whether this Group should be configured from config.
      callback - will be invoked each time data is written to the log
      resetCounter - Control for if this group should be reset between each logging interval.
  • Method Details

    • increment

      public void increment(String name)
      Deprecated.
      Increment named contained counter by 1.
    • increment

      public void increment(String name, long n)
      Deprecated.
      Increment named contained counter by n.
    • runHandle

      public void runHandle()
      Deprecated.
      Dump contained counters to log and reset.
      Specified by:
      runHandle in class Handle
    • equals

      public boolean equals(Object o)
      Deprecated.
      Specified by:
      equals in class Handle
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in class Handle