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

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of this class using the given parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    final long
    Delivers the ID of the last trace which has been processed successfully.
    final int
    Delivers the number of traces which have been processed successfully.
    final int
    Delivers the total number of traces which have been processed.
    protected void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ValidEventRecordTraceCounter

      public ValidEventRecordTraceCounter()
      Creates a new instance of this class using the given parameters.
  • Method Details

    • execute

      protected void execute(TraceEventRecords trace) throws Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<TraceEventRecords>
      Throws:
      Exception
    • onTerminating

      protected void onTerminating()
      Overrides:
      onTerminating in class teetime.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.