Class TraceIdFilter

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<E,​E>
teetime.stage.basic.AbstractFilter<IMonitoringRecord>
kieker.analysis.architecture.trace.TraceIdFilter
All Implemented Interfaces:
teetime.stage.basic.ITransformation<IMonitoringRecord,​IMonitoringRecord>

public class TraceIdFilter
extends teetime.stage.basic.AbstractFilter<IMonitoringRecord>
Allows to filter Traces about their traceIds. This class has exactly one input port and two output ports. If the received object contains the defined traceID, the object is delivered unmodified to the matchingTraceIdOutputPort otherwise to the mismatchingTraceIdOutputPort.
Since:
1.15
Author:
Andre van Hoorn, Jan Waller, Lars Bluemke, Reiner Jung
  • Field Summary

    Fields inherited from class teetime.stage.basic.AbstractTransformation

    outputPort

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    TraceIdFilter​(boolean acceptAllTraces, java.util.Set<java.lang.Long> selectedTraceIds)
    Creates a new instance of this class using the given parameters.
  • Method Summary

    Modifier and Type Method Description
    protected void execute​(IMonitoringRecord element)  
    teetime.framework.OutputPort<IMonitoringRecord> getMismatchingTraceIdOutputPort()
    Returns the output port delivering the records with the non matching IDs.
    protected void onTerminating()  

    Methods inherited from class teetime.stage.basic.AbstractTransformation

    getOutputPort

    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

    Methods inherited from interface teetime.stage.basic.ITransformation

    getInputPort
  • Constructor Details

    • TraceIdFilter

      public TraceIdFilter​(boolean acceptAllTraces, java.util.Set<java.lang.Long> selectedTraceIds)
      Creates a new instance of this class using the given parameters.
      Parameters:
      acceptAllTraces - Determining whether to accept all traces, regardless of the given trace IDs.
      selectedTraceIds - Determining which trace IDs should be accepted by this filter.
  • Method Details

    • onTerminating

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

      protected void execute​(IMonitoringRecord element) throws java.lang.Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<IMonitoringRecord>
      Throws:
      java.lang.Exception
    • getMismatchingTraceIdOutputPort

      public teetime.framework.OutputPort<IMonitoringRecord> getMismatchingTraceIdOutputPort()
      Returns the output port delivering the records with the non matching IDs.