Class AbstractAggregator<T>
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.aggregator.AbstractAggregator<T>
-
- All Implemented Interfaces:
Aggregator<T>
public abstract class AbstractAggregator<T> extends Object implements Aggregator<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAggregator(io.opentelemetry.sdk.resources.Resource resource, io.opentelemetry.sdk.common.InstrumentationLibraryInfo instrumentationLibraryInfo, InstrumentDescriptor instrumentDescriptor, boolean stateful)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.opentelemetry.sdk.common.InstrumentationLibraryInfogetInstrumentationLibraryInfo()protected InstrumentDescriptorgetInstrumentDescriptor()protected io.opentelemetry.sdk.resources.ResourcegetResource()booleanisStateful()Returnstrueif the processor needs to keep the previous collected state in order to compute the desired metric.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.metrics.aggregator.Aggregator
accumulateDouble, accumulateLong, createHandle, merge, toMetricData
-
-
-
-
Constructor Detail
-
AbstractAggregator
protected AbstractAggregator(io.opentelemetry.sdk.resources.Resource resource, io.opentelemetry.sdk.common.InstrumentationLibraryInfo instrumentationLibraryInfo, InstrumentDescriptor instrumentDescriptor, boolean stateful)
-
-
Method Detail
-
isStateful
public boolean isStateful()
Description copied from interface:AggregatorReturnstrueif the processor needs to keep the previous collected state in order to compute the desired metric.- Specified by:
isStatefulin interfaceAggregator<T>- Returns:
trueif the processor needs to keep the previous collected state.
-
getResource
protected final io.opentelemetry.sdk.resources.Resource getResource()
-
getInstrumentationLibraryInfo
protected final io.opentelemetry.sdk.common.InstrumentationLibraryInfo getInstrumentationLibraryInfo()
-
getInstrumentDescriptor
protected final InstrumentDescriptor getInstrumentDescriptor()
-
-