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
-
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.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
-
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 classteetime.framework.AbstractStage
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<IMonitoringRecord>
- Throws:
java.lang.Exception
-
getMismatchingTraceIdOutputPort
Returns the output port delivering the records with the non matching IDs.
-