Class NullSink

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<java.lang.Object>
kieker.analysis.generic.sink.NullSink

public class NullSink
extends teetime.framework.AbstractConsumerStage<java.lang.Object>
Act like a null device.
Since:
1.15
Author:
Reiner Jung
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int DEFAULT_REPORT_INTERVAL  

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    NullSink​(boolean silent)
    Null stage.
    NullSink​(boolean silent, int reportInterval)
    Null stage.
  • Method Summary

    Modifier and Type Method Description
    protected void execute​(java.lang.Object record)  
    long getCount()  
    java.util.Map<java.lang.Class<? extends java.lang.Object>,​java.lang.Integer> getTypes()  
    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

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • NullSink

      public NullSink​(boolean silent)
      Null stage.
      Parameters:
      silent - silent operations.
    • NullSink

      public NullSink​(boolean silent, int reportInterval)
      Null stage.
      Parameters:
      silent - silent operations.
      reportInterval - number of records to be received before logging
  • Method Details

    • onTerminating

      protected void onTerminating()
      Overrides:
      onTerminating in class teetime.framework.AbstractStage
    • execute

      protected void execute​(java.lang.Object record)
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<java.lang.Object>
    • getCount

      public long getCount()
    • getTypes

      public java.util.Map<java.lang.Class<? extends java.lang.Object>,​java.lang.Integer> getTypes()