public class AggregateConsumer extends AbstractSampleConsumer
| Constructor and Description |
|---|
AggregateConsumer(Aggregator aggregator,
SampleSelector<Double> selector)
Instantiates a new abstract aggregate consumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consume(Sample sample,
int channel)
Consumes the specified sample ton the specified channel.
|
Aggregator |
getAggregator()
Gets the aggregator.
|
SampleSelector<Double> |
getSelector()
Gets the selector.
|
void |
startConsuming()
Start the sample consuming.
|
void |
stopConsuming()
Stops the consuming process.
|
addSampleConsumer, getConsumedChannelCount, getConsumedMetadata, getConsumer, getDataFromContext, getName, getWorkingDirectory, produce, removeSampleConsumer, setChannelAttribute, setConsumedMetadata, setDataToContext, setName, setProducedMetadata, setSampleConsumer, setSampleConsumers, setSampleContext, startProducing, stopProducinggetChannelAttribute, getSampleContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChannelAttribute, getSampleContextpublic AggregateConsumer(Aggregator aggregator, SampleSelector<Double> selector)
aggregator - the aggregator (must not be null)selector - the selector (must not be null)public final Aggregator getAggregator()
public final SampleSelector<Double> getSelector()
public void startConsuming()
SampleConsumerpublic void consume(Sample sample, int channel)
SampleConsumersample - The sample to be consumedchannel - The channel on which the sample is consumedpublic void stopConsuming()
SampleConsumerCopyright © 1998-2020 Apache Software Foundation. All Rights Reserved.