Class EventRecordTraceCounter

java.lang.Object
teetime.framework.AbstractStage
kieker.analysis.plugin.trace.EventRecordTraceCounter

@Deprecated
public class EventRecordTraceCounter
extends teetime.framework.AbstractStage
Deprecated.
1.15 a joint counter for valid and invalid traces makes no sense and requires separate threads to execute, superseded by (Invalid|Valid)EventRecordTraceCounter
Counts and reports the number of incoming valid/invalid TraceEventRecords.
Since:
1.7
Author:
Andre van Hoorn, Reiner Jung -- ported to teetime
  • Field Summary

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    EventRecordTraceCounter​(boolean logInvalidTraces)
    Deprecated.
    Creates a new instance of this class using the given parameters.
  • Method Summary

    Modifier and Type Method Description
    protected void execute()
    Deprecated.
     
    int getErrorCount()
    Deprecated.
    Delivers the number of traces which have not been processed successfully.
    teetime.framework.InputPort<TraceEventRecords> getInvalidEventRecordTraceInputPort()
    Deprecated.
     
    long getLastTraceIdError()
    Deprecated.
    Delivers the ID of the last trace which has not been processed successfully.
    long getLastTraceIdSuccess()
    Deprecated.
    Delivers the ID of the last trace which has been processed successfully.
    int getSuccessCount()
    Deprecated.
    Delivers the number of traces which have been processed successfully.
    int getTotalCount()
    Deprecated.
    Delivers the total number of traces which have been processed.
    teetime.framework.InputPort<TraceEventRecords> getValidEventRecordTraceInputPort()
    Deprecated.
     
    void printStatusMessage()
    Deprecated.
    Returns a user-addressed status message to be logged by the calling tool.
    protected void reportError​(long traceId)
    Deprecated.
    This method can be used to report a trace which has not been processed successfully.
    protected void reportSuccess​(long traceId)
    Deprecated.
    This method can be used to report a trace which has been processed successfully.

    Methods inherited from class teetime.framework.AbstractStage

    abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, 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

    • EventRecordTraceCounter

      public EventRecordTraceCounter​(boolean logInvalidTraces)
      Deprecated.
      Creates a new instance of this class using the given parameters.
      Parameters:
      logInvalidTraces - if true invalid traces are logged in the error log
  • Method Details

    • execute

      protected void execute() throws java.lang.Exception
      Deprecated.
      Specified by:
      execute in class teetime.framework.AbstractStage
      Throws:
      java.lang.Exception
    • reportSuccess

      protected final void reportSuccess​(long traceId)
      Deprecated.
      This method can be used to report a trace which has been processed successfully.
      Parameters:
      traceId - The ID of the processed trace.
    • reportError

      protected final void reportError​(long traceId)
      Deprecated.
      This method can be used to report a trace which has not been processed successfully.
      Parameters:
      traceId - The ID of the processed trace.
    • getInvalidEventRecordTraceInputPort

      public teetime.framework.InputPort<TraceEventRecords> getInvalidEventRecordTraceInputPort()
      Deprecated.
    • getValidEventRecordTraceInputPort

      public teetime.framework.InputPort<TraceEventRecords> getValidEventRecordTraceInputPort()
      Deprecated.
    • getSuccessCount

      public final int getSuccessCount()
      Deprecated.
      Delivers the number of traces which have been processed successfully.
      Returns:
      The number of traces.
    • getErrorCount

      public final int getErrorCount()
      Deprecated.
      Delivers the number of traces which have not been processed successfully.
      Returns:
      The number of traces.
    • getTotalCount

      public final int getTotalCount()
      Deprecated.
      Delivers the total number of traces which have been processed.
      Returns:
      The number of traces.
    • getLastTraceIdError

      public final long getLastTraceIdError()
      Deprecated.
      Delivers the ID of the last trace which has not been processed successfully.
      Returns:
      The trace ID.
    • getLastTraceIdSuccess

      public final long getLastTraceIdSuccess()
      Deprecated.
      Delivers the ID of the last trace which has been processed successfully.
      Returns:
      The trace ID.
    • printStatusMessage

      public void printStatusMessage()
      Deprecated.
      Returns a user-addressed status message to be logged by the calling tool. Extending classes may override this method but should call the then-inherited method first.