Package kieker.analysis.generic
Class DynamicEventDispatcher
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<java.lang.Object>
kieker.analysis.generic.DynamicEventDispatcher
public class DynamicEventDispatcher
extends teetime.framework.AbstractConsumerStage<java.lang.Object>
The DynamicEventDispatcher allows to select specific events from the event stream and send them
to a specific event stream.
- Since:
- 1.15
- Author:
- Reiner Jung
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DynamicEventDispatcher(IEventMatcher<? extends java.lang.Object> rootEventMatcher, boolean countEvents, boolean reportUnknown, boolean outputOther)
Create a new dynamic dispatcher. -
Method Summary
Modifier and Type Method Description protected void
execute(java.lang.Object event)
long
getEventCount()
teetime.framework.OutputPort<java.lang.Object>
getOutputOtherPort()
void
onTerminating()
void
registerOutput(IEventMatcher<? extends java.lang.Object> leaveEventMatcher)
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
-
DynamicEventDispatcher
public DynamicEventDispatcher(IEventMatcher<? extends java.lang.Object> rootEventMatcher, boolean countEvents, boolean reportUnknown, boolean outputOther)Create a new dynamic dispatcher.- Parameters:
rootEventMatcher
- first matcher in a sequence of matchers used for this dispatchercountEvents
- flag to activate event countingreportUnknown
- report on unknown event typesoutputOther
- provide an output port for events not send to other ports
-
-
Method Details
-
execute
protected void execute(java.lang.Object event) throws java.lang.Exception- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<java.lang.Object>
- Throws:
java.lang.Exception
-
getOutputOtherPort
public teetime.framework.OutputPort<java.lang.Object> getOutputOtherPort() -
getEventCount
public long getEventCount() -
onTerminating
public void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-
registerOutput
-