Package com.yahoo.statistics
Class ValueGroup
- java.lang.Object
-
- com.yahoo.statistics.Handle
-
- com.yahoo.statistics.ValueGroup
-
public class ValueGroup extends Handle
A set of related values which should be logged together.- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description ValueGroup(java.lang.String name, Statistics manager)
Create a ValueGroup.ValueGroup(java.lang.String name, Statistics manager, Callback callback)
Create a ValueGroup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
void
put(java.lang.String name, double x)
Put a value into the named value in the group.void
runHandle()
Dump state to log and reset.-
Methods inherited from class com.yahoo.statistics.Handle
cancel, isCancelled, run, runCallback
-
-
-
-
Constructor Detail
-
ValueGroup
public ValueGroup(java.lang.String name, Statistics manager)
Create a ValueGroup.- Parameters:
name
- The symbolic name of this group of valuesmanager
- the statistics manager acquired by injection
-
ValueGroup
public ValueGroup(java.lang.String name, Statistics manager, Callback callback)
Create a ValueGroup.- Parameters:
name
- The symbolic name of this group of valuesmanager
- the statistics manager acquired by injectioncallback
- will be invoked each time data is written to the log
-
-