Class SampleWriterConsumer
java.lang.Object
org.apache.jmeter.report.processor.AbstractSampleProcessor
org.apache.jmeter.report.processor.AbstractSampleConsumer
org.apache.jmeter.report.processor.SampleWriterConsumer
- All Implemented Interfaces:
SampleConsumer,SampleProcessor,SampleProducer
Sample consumed by this consumer are written to a file
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConsumes the specified sample ton the specified channel.getOutputFile(int channel) voidsetOutputFile(File outputFile) voidsetOutputFile(String outputFile) voidsetWriteHeader(boolean writeHeader) Enables the CSV header on the output file (defaults to false)voidStart the sample consuming.voidStops 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, stopProducingMethods inherited from class org.apache.jmeter.report.processor.AbstractSampleProcessor
getChannelAttribute, getSampleContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.report.processor.SampleProcessor
getChannelAttribute, getSampleContext
-
Constructor Details
-
SampleWriterConsumer
public SampleWriterConsumer()
-
-
Method Details
-
setOutputFile
-
setOutputFile
-
getOutputFile
-
getOutputFile
-
setWriteHeader
public void setWriteHeader(boolean writeHeader) Enables the CSV header on the output file (defaults to false)- Parameters:
writeHeader- flag, whether CSV header should be written
-
startConsuming
public void startConsuming()Description copied from interface:SampleConsumerStart the sample consuming. This step is used by consumer to initialize their process. -
consume
Description copied from interface:SampleConsumerConsumes the specified sample ton the specified channel.- Parameters:
s- The sample to be consumedchannel- The channel on which the sample is consumed
-
stopConsuming
public void stopConsuming()Description copied from interface:SampleConsumerStops the consuming process. No sample will be processed after this service has been called.
-