public class SampleWriterConsumer extends AbstractSampleConsumer
| Constructor and Description |
|---|
SampleWriterConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(Sample s,
int channel)
Consumes the specified sample ton the specified channel.
|
java.io.File |
getOutputFile() |
java.io.File |
getOutputFile(int channel) |
void |
setOutputFile(java.io.File outputFile) |
void |
setOutputFile(java.lang.String outputFile) |
void |
setWriteHeader(boolean writeHeader)
Enables the CSV header on the output file (defaults to false)
|
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 void setOutputFile(java.lang.String outputFile)
public void setOutputFile(java.io.File outputFile)
public java.io.File getOutputFile()
public java.io.File getOutputFile(int channel)
public void setWriteHeader(boolean writeHeader)
writeHeader - flag, whether CSV header should be writtenpublic void startConsuming()
SampleConsumerpublic void consume(Sample s, int channel)
SampleConsumers - The sample to be consumedchannel - The channel on which the sample is consumedpublic void stopConsuming()
SampleConsumerCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.