|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.metrics.codahale_metrics.metrics.core.Histogram
public class Histogram
A metric which calculates the distribution of a value.
Method Summary | ||
---|---|---|
void |
clear()
Clears all recorded values. |
|
long |
count()
Returns the number of values recorded. |
|
Snapshot |
getSnapshot()
Returns a snapshot of the values. |
|
double |
max()
Returns the largest recorded value. |
|
double |
mean()
Returns the arithmetic mean of all recorded values. |
|
double |
min()
Returns the smallest recorded value. |
|
|
processWith(MetricProcessor<T> processor,
MetricName name,
T context)
Allow the given MetricProcessor to process this as a metric. |
|
double |
stdDev()
Returns the standard deviation of all recorded values. |
|
double |
sum()
Returns the sum of all recorded values. |
|
void |
update(int value)
Adds a recorded value. |
|
void |
update(long value)
Adds a recorded value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void clear()
public void update(int value)
value
- the length of the valuepublic void update(long value)
value
- the length of the valuepublic long count()
public double max()
Summarizable
max
in interface Summarizable
public double min()
Summarizable
min
in interface Summarizable
public double mean()
Summarizable
mean
in interface Summarizable
public double stdDev()
Summarizable
stdDev
in interface Summarizable
public double sum()
Summarizable
sum
in interface Summarizable
public Snapshot getSnapshot()
Sampling
getSnapshot
in interface Sampling
public <T> void processWith(MetricProcessor<T> processor, MetricName name, T context) throws java.lang.Exception
Metric
MetricProcessor
to process this
as a metric.
processWith
in interface Metric
T
- the type of the context objectprocessor
- a MetricProcessor
name
- the name of the current metriccontext
- a given context which should be passed on to processor
java.lang.Exception
- if something goes wrong
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |