Class InvalidExecutionTraceWriterSink
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.architecture.trace.AbstractTraceAnalysisStage<T>
kieker.analysis.architecture.trace.AbstractTraceProcessingStage<InvalidExecutionTrace>
kieker.analysis.architecture.trace.sink.InvalidExecutionTraceWriterSink
public class InvalidExecutionTraceWriterSink extends AbstractTraceProcessingStage<InvalidExecutionTrace>
Writes invalid execution traces to a specified file.
- Since:
- 1.2
- Author:
- Andre van Hoorn, Reiner Jung -- teetime port
-
Field Summary
-
Constructor Summary
Constructors Constructor Description InvalidExecutionTraceWriterSink(SystemModelRepository repository, java.io.File outputFile)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description protected void
execute(InvalidExecutionTrace element)
protected void
onTerminating()
void
printStatusMessage()
Returns a user-addressed status message to be logged by the calling tool.Methods inherited from class kieker.analysis.architecture.trace.AbstractTraceProcessingStage
getErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, reportError, reportSuccess
Methods inherited from class kieker.analysis.architecture.trace.AbstractTraceAnalysisStage
createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemModelRepository, printDebugLogMessage, printErrorLogMessage
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
-
InvalidExecutionTraceWriterSink
public InvalidExecutionTraceWriterSink(SystemModelRepository repository, java.io.File outputFile) throws java.io.IOExceptionCreates a new instance of this class using the given parameters.- Parameters:
repository
- system model repositoryoutputFile
- file handle for the output file- Throws:
java.io.IOException
- If the write stream could not be prepared.
-
-
Method Details
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<InvalidExecutionTrace>
- Throws:
java.lang.Exception
-
printStatusMessage
public void printStatusMessage()Description copied from class:AbstractTraceProcessingStage
Returns a user-addressed status message to be logged by the calling tool. Extending classes may override this method but should call the then-inherited method first.- Overrides:
printStatusMessage
in classAbstractTraceProcessingStage<InvalidExecutionTrace>
-
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-