Class AggregateConsumer
-
- All Implemented Interfaces:
-
org.apache.jmeter.report.processor.SampleConsumer
,org.apache.jmeter.report.processor.SampleProcessor
,org.apache.jmeter.report.processor.SampleProducer
public class AggregateConsumer extends AbstractSampleConsumer
The Class AggregateConsumer provides a consumer that can aggregate samples to provide a result
- Since:
3.0
-
-
Field Summary
Fields Modifier and Type Field Description public final Aggregator
aggregator
public final SampleSelector<Double>
selector
public String
name
public SampleContext
sampleContext
-
Constructor Summary
Constructors Constructor Description AggregateConsumer(Aggregator aggregator, SampleSelector<Double> selector)
Instantiates a new abstract aggregate consumer.
-
Method Summary
Modifier and Type Method Description final Aggregator
getAggregator()
Gets the aggregator. final SampleSelector<Double>
getSelector()
Gets the selector. void
startConsuming()
Start the sample consuming. void
consume(Sample sample, int channel)
Consumes the specified sample ton the specified channel. void
stopConsuming()
Stops the consuming process. -
Methods inherited from class org.apache.jmeter.report.processor.AbstractSampleConsumer
addSampleConsumer, getConsumedChannelCount, getConsumedMetadata, getName, getWorkingDirectory, produce, removeSampleConsumer, setChannelAttribute, setConsumedMetadata, setName, setProducedMetadata, setSampleConsumer, setSampleConsumers, setSampleContext, startProducing, stopProducing
-
Methods inherited from class org.apache.jmeter.report.processor.AbstractSampleProcessor
getChannelAttribute, getSampleContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AggregateConsumer
AggregateConsumer(Aggregator aggregator, SampleSelector<Double> selector)
Instantiates a new abstract aggregate consumer.- Parameters:
aggregator
- the aggregator (must not benull
)selector
- the selector (must not benull
)
-
-
Method Detail
-
getAggregator
final Aggregator getAggregator()
Gets the aggregator.
- Returns:
the aggregator
-
getSelector
final SampleSelector<Double> getSelector()
Gets the selector.
- Returns:
the selector
-
startConsuming
void startConsuming()
Start the sample consuming. This step is used by consumer to initialize their process.
-
consume
void consume(Sample sample, int channel)
Consumes the specified sample ton the specified channel.
- Parameters:
channel
- The channel on which the sample is consumed
-
stopConsuming
void stopConsuming()
Stops the consuming process. No sample will be processed after this service has been called.
-
-
-
-