public final class AggregatedMetricLong extends AggregatedMetric<Long>
count, max, min, sum
Constructor and Description |
---|
AggregatedMetricLong()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(Long value,
String hostnamePartitionId)
Add another item to the aggregation.
|
double |
mean()
Get average of all the values
|
public void addItem(Long value, String hostnamePartitionId)
AggregatedMetric
addItem
in class AggregatedMetric<Long>
value
- value to addhostnamePartitionId
- String hostname it came frompublic double mean()
AggregatedMetric
mean
in class AggregatedMetric<Long>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.