|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yammer.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 Summarizablepublic double min()
Summarizable
min in interface Summarizablepublic double mean()
Summarizable
mean in interface Summarizablepublic double stdDev()
Summarizable
stdDev in interface Summarizablepublic double sum()
Summarizable
sum in interface Summarizablepublic Snapshot getSnapshot()
Sampling
getSnapshot in interface Sampling
public <T> void processWith(MetricProcessor<T> processor,
MetricName name,
T context)
throws Exception
MetricMetricProcessor to process this as a metric.
processWith in interface MetricT - the type of the context objectprocessor - a MetricProcessorname - the name of the current metriccontext - a given context which should be passed on to processor
Exception - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||