Package com.yahoo.statistics
Class CounterGroup
java.lang.Object
com.yahoo.statistics.Handle
com.yahoo.statistics.CounterGroup
Deprecated.
A set of associated counters.
- Author:
- Steinar Knutsen
-
Constructor Summary
ConstructorDescriptionCounterGroup
(String name, Statistics manager) Deprecated.CounterGroup
(String name, Statistics manager, boolean fetchParametersFromConfig) Deprecated.Create a basic group of counter which may or may not depend on config.CounterGroup
(String name, Statistics manager, boolean fetchParametersFromConfig, Callback callback, boolean resetCounter) Deprecated.Create a group of counters with a callback included. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.int
hashCode()
Deprecated.void
Deprecated.Increment named contained counter by 1.void
Deprecated.Increment named contained counter by n.void
Deprecated.Dump contained counters to log and reset.Methods inherited from class com.yahoo.statistics.Handle
cancel, isCancelled, run, runCallback
-
Constructor Details
-
CounterGroup
Deprecated.- Parameters:
name
- The symbolic name of this group of counters.
-
CounterGroup
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 injectionfetchParametersFromConfig
- 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 injectionfetchParametersFromConfig
- Whether this Group should be configured from config.callback
- will be invoked each time data is written to the logresetCounter
- Control for if this group should be reset between each logging interval.
-
-
Method Details
-
increment
Deprecated.Increment named contained counter by 1. -
increment
Deprecated.Increment named contained counter by n. -
runHandle
public void runHandle()Deprecated.Dump contained counters to log and reset. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-