Package org.elasticsearch.common.metrics
Class MeanMetric
java.lang.Object
org.elasticsearch.common.metrics.MeanMetric
public final class MeanMetric
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description MeanMetric()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MeanMetric
public MeanMetric()
-
-
Method Details
-
inc
public void inc(long n) -
count
public long count()Returns the current count of this metric. This metric supports onlyinc(long)
that increases the counter whenever it's invoked; hence, the returned count is always non-negative. -
sum
public long sum() -
mean
public double mean()
-