Interface Aggregation
-
@Immutable public interface AggregationAggregationis the process of combining a certain set of recorded measurements for a givenInstrumentinto the equivalentMetricData.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanavailableForInstrument(InstrumentType instrumentType)Returnstrueif thisAggregationcan be applied to the givenInstrumentType.AggregatorFactorygetAggregatorFactory(InstrumentValueType instrumentValueType)Returns anAggregationFactorythat can be used to produce theAggregatorthat needs to be used to aggregate all the values to produce thisAggregation.MetricData.TypegetDescriptorType(InstrumentType instrumentType, InstrumentValueType instrumentValueType)Returns theMetricData.Typethat thisAggregationwill produce.java.lang.StringgetUnit(java.lang.String initialUnit)Returns the unit that thisAggregationwill produce.
-
-
-
Method Detail
-
getAggregatorFactory
AggregatorFactory getAggregatorFactory(InstrumentValueType instrumentValueType)
Returns anAggregationFactorythat can be used to produce theAggregatorthat needs to be used to aggregate all the values to produce thisAggregation.- Parameters:
instrumentValueType- the type of recorded values for theInstrument.- Returns:
- the
AggregationFactory.
-
getDescriptorType
MetricData.Type getDescriptorType(InstrumentType instrumentType, InstrumentValueType instrumentValueType)
Returns theMetricData.Typethat thisAggregationwill produce.- Parameters:
instrumentType- the type of theInstrument.instrumentValueType- the type of recorded values for theInstrument.- Returns:
- the
MetricData.Typethat thisAggregationwill produce.
-
getUnit
java.lang.String getUnit(java.lang.String initialUnit)
Returns the unit that thisAggregationwill produce.- Parameters:
initialUnit- the initial unit for theInstrument's measurements.- Returns:
- the unit that this
Aggregationwill produce.
-
availableForInstrument
boolean availableForInstrument(InstrumentType instrumentType)
Returnstrueif thisAggregationcan be applied to the givenInstrumentType.- Parameters:
instrumentType- the type of theInstrument.- Returns:
trueif thisAggregationcan be applied to the givenInstrumentType.
-
-