Class MinStatistic.MinAccumulator
java.lang.Object
com.arpnetworking.tsdcore.statistics.BaseCalculator<Void>
com.arpnetworking.tsdcore.statistics.MinStatistic.MinAccumulator
- All Implemented Interfaces:
Accumulator<Void>
,Calculator<Void>
- Enclosing class:
- MinStatistic
public static final class MinStatistic.MinAccumulator
extends BaseCalculator<Void>
implements Accumulator<Void>
Accumulator computing the minimum of values.
- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccumulate
(CalculatedValue<Void> calculatedValue) Add the specifiedCalculatedValue
to the accumulated value.accumulate
(Quantity quantity) Add the specifiedQuantity
to the accumulated value.calculate
(Map<Statistic, Calculator<?>> dependencies) Compute the value of a statistic.Methods inherited from class com.arpnetworking.tsdcore.statistics.BaseCalculator
equals, getStatistic, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arpnetworking.tsdcore.statistics.Calculator
getStatistic
-
Constructor Details
-
MinAccumulator
Public constructor.- Parameters:
statistic
- TheStatistic
.
-
-
Method Details
-
accumulate
Description copied from interface:Accumulator
Add the specifiedQuantity
to the accumulated value. It is permissible to mix calls to accumulate withQuantity
andCalculatedValue
.- Specified by:
accumulate
in interfaceAccumulator<Void>
- Parameters:
quantity
- TheQuantity
to include in the accumulated value.- Returns:
- This
Accumulator
.
-
accumulate
Description copied from interface:Accumulator
Add the specifiedCalculatedValue
to the accumulated value. TheCalculatedValue
was produced by thisAccumulator
in a different context. For example, for a different time period or a different host. It is permissible to mix calls to accumulate withQuantity
andCalculatedValue
.- Specified by:
accumulate
in interfaceAccumulator<Void>
- Parameters:
calculatedValue
- TheCalculatedValue
to include in the accumulated value.- Returns:
- This
Accumulator
.
-
calculate
Description copied from interface:Calculator
Compute the value of a statistic.- Specified by:
calculate
in interfaceCalculator<Void>
- Parameters:
dependencies
- TheMap
ofStatistic
to itsCalculator
.- Returns:
- The
CalculatedValue
for the statistic.
-