Package kieker.analysis.generic
Class CountEventsStage<T>
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<E,E>
teetime.stage.basic.AbstractFilter<T>
kieker.analysis.generic.CountEventsStage<T>
- Type Parameters:
T
- event type
- All Implemented Interfaces:
teetime.stage.basic.ITransformation<T,T>
public class CountEventsStage<T>
extends teetime.stage.basic.AbstractFilter<T>
Counts all events and hands them to the next filter unchanged. The stage outputs the number of
events for every
numberOfOccurance
event occurrence and on termination. Output is
written to info log channel.- Since:
- 1.0
- Author:
- Reiner Jung
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CountEventsStage(long numberOfOccurance)
-
Method Summary
Modifier and Type Method Description protected void
execute(T element)
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
-
CountEventsStage
public CountEventsStage(long numberOfOccurance)
-
-
Method Details
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<T>
- Throws:
java.lang.Exception
-
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.framework.AbstractStage
-