Class AbstractSampleSource
java.lang.Object
org.apache.jmeter.report.processor.AbstractSampleSource
- All Implemented Interfaces:
Runnable
,SampleSource
- Direct Known Subclasses:
CsvFileSampleSource
-
Constructor Summary
ModifierConstructorDescriptionprotected
Instantiates a new abstract sample source. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addSampleConsumer
(SampleConsumer consumer) Add a sample consumer to this sample source.Gets the sample context.abstract void
removeSampleConsumer
(SampleConsumer consumer) Remove a sample consumer from this sample source.abstract void
run()
abstract void
setSampleConsumers
(List<SampleConsumer> consumers) Sets the specified sample consumers that will consume samples produced by this sample source.void
setSampleContext
(SampleContext sampleContext) Sets the sample context.
-
Constructor Details
-
AbstractSampleSource
protected AbstractSampleSource()Instantiates a new abstract sample source.
-
-
Method Details
-
run
public abstract void run() -
getSampleContext
Description copied from interface:SampleSource
Gets the sample context.- Specified by:
getSampleContext
in interfaceSampleSource
- Returns:
- the sampleContext
-
setSampleContext
Description copied from interface:SampleSource
Sets the sample context.- Specified by:
setSampleContext
in interfaceSampleSource
- Parameters:
sampleContext
- the sampleContext to set
-
setSampleConsumers
Description copied from interface:SampleSource
Sets the specified sample consumers that will consume samples produced by this sample source.- Specified by:
setSampleConsumers
in interfaceSampleSource
- Parameters:
consumers
- consumers to be set
-
addSampleConsumer
Description copied from interface:SampleSource
Add a sample consumer to this sample source.- Specified by:
addSampleConsumer
in interfaceSampleSource
- Parameters:
consumer
- consumer to be added
-
removeSampleConsumer
Description copied from interface:SampleSource
Remove a sample consumer from this sample source.- Specified by:
removeSampleConsumer
in interfaceSampleSource
- Parameters:
consumer
- consumer to be removed
-