public class TimeHistogram
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected int |
bucketCount |
protected java.lang.Long[] |
defaultTimeBounds |
protected java.lang.Integer[] |
histogram |
protected java.lang.String |
name |
protected int |
pointCount |
protected int |
reportingInterval |
protected java.lang.Boolean |
running |
protected java.lang.Long[] |
timeBounds |
Constructor and Description |
---|
TimeHistogram(java.lang.String name) |
TimeHistogram(java.lang.String name,
java.lang.Integer reportingInterval) |
TimeHistogram(java.lang.String name,
java.lang.Integer reportingInterval,
java.lang.Long[] timeBounds) |
Modifier and Type | Method and Description |
---|---|
void |
addTime(long time) |
protected java.lang.String |
formatTime(long t) |
protected java.lang.String |
histogramString(int index) |
protected void |
report() |
void |
run() |
protected void |
start() |
void |
stop() |
protected java.lang.String name
protected int reportingInterval
protected java.lang.Boolean running
protected int bucketCount
protected int pointCount
protected java.lang.Integer[] histogram
protected java.lang.Long[] timeBounds
protected java.lang.Long[] defaultTimeBounds
public TimeHistogram(java.lang.String name)
public TimeHistogram(java.lang.String name, java.lang.Integer reportingInterval)
public TimeHistogram(java.lang.String name, java.lang.Integer reportingInterval, java.lang.Long[] timeBounds)
public void stop()
public void addTime(long time)
protected void start()
public void run()
run
in interface java.lang.Runnable
protected void report()
protected java.lang.String formatTime(long t)
protected java.lang.String histogramString(int index)