Class TaggerConsumer<TIndex>
java.lang.Object
org.apache.jmeter.report.processor.AbstractSampleProcessor
org.apache.jmeter.report.processor.AbstractSampleConsumer
org.apache.jmeter.report.processor.TaggerConsumer<TIndex>
- Type Parameters:
TIndex
- the generic type
- All Implemented Interfaces:
SampleConsumer
,SampleProcessor
,SampleProducer
The Class TimeCountConsumer adds a data field to the samples it consumes.
The new field is identified by the value of tagLabel in the sample metadata.
- Since:
- 3.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Consumes the specified sample ton the specified channel.final SampleIndexer<TIndex>
final String
Gets the label of the tag used by this consumer.final void
setSampleIndexer
(SampleIndexer<TIndex> sampleIndexer) final void
setTagLabel
(String tagLabel) void
Start the sample consuming.void
Stops the consuming process.Methods inherited from class org.apache.jmeter.report.processor.AbstractSampleConsumer
addSampleConsumer, getConsumedChannelCount, getConsumedMetadata, getConsumer, getDataFromContext, getName, getWorkingDirectory, produce, removeSampleConsumer, setChannelAttribute, setConsumedMetadata, setDataToContext, 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
Methods inherited from interface org.apache.jmeter.report.processor.SampleProcessor
getChannelAttribute, getSampleContext
-
Field Details
-
DEFAULT_TAG_LABEL
- See Also:
-
-
Constructor Details
-
TaggerConsumer
public TaggerConsumer()
-
-
Method Details
-
getTagLabel
Gets the label of the tag used by this consumer.- Returns:
- the label of the tag used by this consumer.
-
setTagLabel
-
getSampleIndexer
-
setSampleIndexer
-
startConsuming
public void startConsuming()Description copied from interface:SampleConsumer
Start the sample consuming. This step is used by consumer to initialize their process. -
consume
Description copied from interface:SampleConsumer
Consumes the specified sample ton the specified channel.- Parameters:
sample
- The sample to be consumedchannel
- The channel on which the sample is consumed
-
stopConsuming
public void stopConsuming()Description copied from interface:SampleConsumer
Stops the consuming process. No sample will be processed after this service has been called.
-