Class MessageTraceWriterFilter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.architecture.trace.AbstractTraceAnalysisStage<T>
kieker.analysis.architecture.trace.AbstractTraceProcessingStage<MessageTrace>
kieker.analysis.architecture.trace.sink.MessageTraceWriterFilter
public class MessageTraceWriterFilter extends AbstractTraceProcessingStage<MessageTrace>
A filter allowing to write the incoming MessageTraces into a configured file.
- Since:
- 1.2
- Author:
- Andre van Hoorn, Reiner Jung -- teetime port
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MessageTraceWriterFilter(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(MessageTrace messageTrace)
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
-
MessageTraceWriterFilter
public MessageTraceWriterFilter(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
- output file- Throws:
java.io.IOException
- If the write stream could not be prepared.
-
-
Method Details
-
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<MessageTrace>
-
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<MessageTrace>
- Throws:
java.lang.Exception
-