Package kieker.analysis.generic.sink
Class StringFileWriterSink
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<java.lang.String>
kieker.analysis.generic.sink.StringFileWriterSink
public class StringFileWriterSink
extends teetime.framework.AbstractConsumerStage<java.lang.String>
Writes all received strings in a file. Each string is put on a new line.
- Since:
- 1.1
- Author:
- Reiner Jung
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StringFileWriterSink(java.nio.file.Path path)
-
Method Summary
Modifier and Type Method Description protected void
execute(java.lang.String element)
protected void
onTerminating()
Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPort
Methods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Constructor Details
-
StringFileWriterSink
public StringFileWriterSink(java.nio.file.Path path) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
execute
protected void execute(java.lang.String element) throws java.lang.Exception- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<java.lang.String>
- Throws:
java.lang.Exception
-
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-