public class StatCalculatorLong extends StatCalculator<Long>
| Constructor | Description |
|---|---|
StatCalculatorLong() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addValue(long val) |
Add a single value (normally elapsed time)
|
void |
addValue(long val,
int sampleCount) |
Update the calculator with the value for an aggregated sample.
|
protected Long |
divide(Long val,
int n) |
|
protected Long |
divide(Long val,
long n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, addBytes, addValue, addValue, clear, getCount, getDistribution, getMax, getMean, getMedian, getMin, getPercentPoint, getPercentPoint, getStandardDeviation, getSum, getTotalBytespublic void addValue(long val)
val - the value to add, which should correspond with a single samplepublic void addValue(long val,
int sampleCount)
val - the aggregate value, normally the elapsed timesampleCount - the number of samples contributing to the aggregate valueprotected Long divide(Long val, int n)
divide in class StatCalculator<Long>protected Long divide(Long val, long n)
divide in class StatCalculator<Long>Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.