Class MessageTraceWriterFilter

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>

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
  • Constructor Details

    • MessageTraceWriterFilter

      public MessageTraceWriterFilter(SystemModelRepository repository, File outputFile) throws IOException
      Creates a new instance of this class using the given parameters.
      Parameters:
      repository - system model repository
      outputFile - output file
      Throws:
      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 class AbstractTraceProcessingStage<MessageTrace>
    • onTerminating

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

      protected void execute(MessageTrace messageTrace) throws Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<MessageTrace>
      Throws:
      Exception