Class StatsGatherer

java.lang.Object
  extended by StatsGatherer

public class StatsGatherer
extends java.lang.Object


Field Summary
private  int bucketSize
           
 long cumulativeVal
           
private  java.util.Hashtable histogram
           
 long maxVal
           
private  double mean
           
private  java.lang.String name
           
 int num
           
private  int skip
           
private  int skipSamples
           
private  java.lang.String tag
           
 
Constructor Summary
StatsGatherer(java.lang.String name, java.lang.String tag, int bucketSize, int skipSamples)
           
 
Method Summary
 void add(long val)
           
(package private)  void dumpHistogram()
           
(package private)  double mean()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

histogram

private java.util.Hashtable histogram

bucketSize

private int bucketSize

name

private java.lang.String name

tag

private java.lang.String tag

mean

private double mean

skipSamples

private int skipSamples

skip

private int skip

num

public int num

maxVal

public long maxVal

cumulativeVal

public long cumulativeVal
Constructor Detail

StatsGatherer

StatsGatherer(java.lang.String name,
              java.lang.String tag,
              int bucketSize,
              int skipSamples)
Method Detail

add

public void add(long val)

dumpHistogram

void dumpHistogram()

mean

double mean()