Class ValidEventRecordTraceCounter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<TraceEventRecords>
kieker.analysis.architecture.trace.ValidEventRecordTraceCounter
public class ValidEventRecordTraceCounter
extends teetime.framework.AbstractConsumerStage<TraceEventRecords>
This sink counts and reports the number of incoming valid
TraceEventRecords.- Since:
- 1.15
- Author:
- Andre van Hoorn, Reiner Jung -- ported to teetime
-
Field Summary
Fields inherited from class teetime.framework.AbstractConsumerStage
inputPortFields inherited from class teetime.framework.AbstractStage
logger -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this class using the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TraceEventRecords trace) final longDelivers the ID of the last trace which has been processed successfully.final intDelivers the number of traces which have been processed successfully.final intDelivers the total number of traces which have been processed.protected voidMethods 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
-
ValidEventRecordTraceCounter
public ValidEventRecordTraceCounter()Creates a new instance of this class using the given parameters.
-
-
Method Details
-
execute
- Specified by:
executein classteetime.framework.AbstractConsumerStage<TraceEventRecords>- Throws:
Exception
-
onTerminating
protected void onTerminating()- Overrides:
onTerminatingin classteetime.framework.AbstractStage
-
getSuccessCount
public final int getSuccessCount()Delivers the number of traces which have been processed successfully.- Returns:
- The number of traces.
-
getTotalCount
public final int getTotalCount()Delivers the total number of traces which have been processed.- Returns:
- The number of traces.
-
getLastTraceIdSuccess
public final long getLastTraceIdSuccess()Delivers the ID of the last trace which has been processed successfully.- Returns:
- The trace ID.
-