Class TraceIdFilter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<E,E>
teetime.stage.basic.AbstractFilter<kieker.common.record.IMonitoringRecord>
kieker.analysis.architecture.trace.TraceIdFilter
- All Implemented Interfaces:
teetime.stage.basic.ITransformation<kieker.common.record.IMonitoringRecord,kieker.common.record.IMonitoringRecord>
public class TraceIdFilter
extends teetime.stage.basic.AbstractFilter<kieker.common.record.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
-
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 voidexecute(kieker.common.record.IMonitoringRecord element)teetime.framework.OutputPort<kieker.common.record.IMonitoringRecord>getMismatchingTraceIdOutputPort()Returns the output port delivering the records with the non matching IDs.protected voidonTerminating()Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPortMethods 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:
onTerminatingin classteetime.framework.AbstractStage
-
execute
protected void execute(kieker.common.record.IMonitoringRecord element) throws java.lang.Exception- Specified by:
executein classteetime.framework.AbstractConsumerStage<kieker.common.record.IMonitoringRecord>- Throws:
java.lang.Exception
-
getMismatchingTraceIdOutputPort
public teetime.framework.OutputPort<kieker.common.record.IMonitoringRecord> getMismatchingTraceIdOutputPort()Returns the output port delivering the records with the non matching IDs.
-