Class InvalidExecutionTraceWriterSink

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.architecture.trace.AbstractTraceAnalysisStage<T>
kieker.analysis.architecture.trace.AbstractTraceProcessingStage<kieker.model.system.model.InvalidExecutionTrace>
kieker.analysis.architecture.trace.sink.InvalidExecutionTraceWriterSink

public class InvalidExecutionTraceWriterSink
extends AbstractTraceProcessingStage<kieker.model.system.model.InvalidExecutionTrace>
Writes invalid execution traces to a specified file.
Since:
1.2
  • Field Summary

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    InvalidExecutionTraceWriterSink​(kieker.model.repository.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​(kieker.model.system.model.InvalidExecutionTrace element)  
    protected void onTerminating()  
    void printStatusMessage()
    Returns a user-addressed status message to be logged by the calling tool.

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InvalidExecutionTraceWriterSink

      public InvalidExecutionTraceWriterSink​(kieker.model.repository.SystemModelRepository repository, java.io.File outputFile) throws java.io.IOException
      Creates a new instance of this class using the given parameters.
      Parameters:
      repository - system model repository
      outputFile - file handle for the output file
      Throws:
      java.io.IOException - If the write stream could not be prepared.
  • Method Details

    • execute

      protected void execute​(kieker.model.system.model.InvalidExecutionTrace element) throws java.lang.Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<kieker.model.system.model.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 class AbstractTraceProcessingStage<kieker.model.system.model.InvalidExecutionTrace>
    • onTerminating

      protected void onTerminating()
      Overrides:
      onTerminating in class teetime.framework.AbstractStage