Class TraceReconstructionStage

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.Execution>
kieker.analysis.architecture.trace.reconstruction.TraceReconstructionStage

public class TraceReconstructionStage
extends AbstractTraceProcessingStage<kieker.model.system.model.Execution>
Uses the incoming data to enrich the connected repository with the reconstructed traces. Input port: @{link Execution} Output port: - messageTraceOutputPort @{link MessageTrace} - executionTraceOutputPort @{link ExecutionTrace} - invalidExecutionTraceOutputPort @{linke InvalidExecutiontrace}
Since:
1.1
  • Field Summary

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    TraceReconstructionStage​(kieker.model.repository.SystemModelRepository repository, java.util.concurrent.TimeUnit timeunit, boolean ignoreInvalidTraces, java.lang.Long maxTraceDuration)
    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.Execution execution)  
    teetime.framework.OutputPort<kieker.model.system.model.ExecutionTrace> getExecutionTraceOutputPort()  
    teetime.framework.OutputPort<kieker.model.system.model.InvalidExecutionTrace> getInvalidExecutionTraceOutputPort()  
    java.util.Set<java.lang.Long> getInvalidTraces()
    Returns a set of the IDs of invalid traces.
    long getMaxTout()
    Returns the maximum tout timestamp of a processed execution.
    long getMaxTraceDuration()
    Return the number of timeunits after which a pending trace is considered to have timed out.
    teetime.framework.OutputPort<kieker.model.system.model.MessageTrace> getMessageTraceOutputPort()  
    long getMinTin()
    Returns the minimum tin timestamp of a processed execution.
    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

    • TraceReconstructionStage

      public TraceReconstructionStage​(kieker.model.repository.SystemModelRepository repository, java.util.concurrent.TimeUnit timeunit, boolean ignoreInvalidTraces, java.lang.Long maxTraceDuration)
      Creates a new instance of this class using the given parameters.
      Parameters:
      repository - the system model repository
      timeunit - the used time unit, e.g., NANOSECONDS
      ignoreInvalidTraces - set whether invalid traces should be ignored (true), or the filter must terminate (false)
      maxTraceDuration - max time duration for a trace, if null Long.MAX_VALUE
  • Method Details

    • getInvalidTraces

      public java.util.Set<java.lang.Long> getInvalidTraces()
      Returns a set of the IDs of invalid traces.
      Returns:
      a set of the IDs of invalid traces
    • getMinTin

      public final long getMinTin()
      Returns the minimum tin timestamp of a processed execution.
      Returns:
      the minimum tin timestamp of a processed execution
    • getMaxTout

      public final long getMaxTout()
      Returns the maximum tout timestamp of a processed execution.
      Returns:
      the maximum tout timestamp of a processed execution
    • execute

      protected void execute​(kieker.model.system.model.Execution execution) throws java.lang.Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<kieker.model.system.model.Execution>
      Throws:
      java.lang.Exception
    • getMaxTraceDuration

      public final long getMaxTraceDuration()
      Return the number of timeunits after which a pending trace is considered to have timed out.
      Returns:
      the timeout duration for a pending trace in timeunits
    • onTerminating

      protected void onTerminating()
      Overrides:
      onTerminating in class teetime.framework.AbstractStage
    • 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.Execution>
    • getMessageTraceOutputPort

      public teetime.framework.OutputPort<kieker.model.system.model.MessageTrace> getMessageTraceOutputPort()
    • getExecutionTraceOutputPort

      public teetime.framework.OutputPort<kieker.model.system.model.ExecutionTrace> getExecutionTraceOutputPort()
    • getInvalidExecutionTraceOutputPort

      public teetime.framework.OutputPort<kieker.model.system.model.InvalidExecutionTrace> getInvalidExecutionTraceOutputPort()