java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.outputs.logger.LoggingOutput
All Implemented Interfaces:
CanFilterResultValue, Output, java.lang.AutoCloseable

public class LoggingOutput
extends java.lang.Object
implements Output, CanFilterResultValue
  • Constructor Summary

    Constructors 
    Constructor Description
    LoggingOutput​(io.nosqlbench.engine.api.activityimpl.ActivityDef def, long slot)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    boolean onCycleResult​(long completedCycle, int result)
    Mark the result of the numbered cycle with an integer value.
    void setFilter​(java.util.function.Predicate<ResultReadable> filter)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.nosqlbench.engine.api.activityapi.output.Output

    onCycleResult, onCycleResultSegment
  • Constructor Details

    • LoggingOutput

      public LoggingOutput​(io.nosqlbench.engine.api.activityimpl.ActivityDef def, long slot)
  • Method Details

    • onCycleResult

      public boolean onCycleResult​(long completedCycle, int result)
      Description copied from interface: Output
      Mark the result of the numbered cycle with an integer value. The meaning of the value provided is contextual to the way it is used. (Each process will have its own status tables, etc.)
      Specified by:
      onCycleResult in interface Output
      Parameters:
      completedCycle - The cycle number being marked.
      result - the result ordinal
      Returns:
      true on success, false if the marking should be retried differently
    • close

      public void close() throws java.lang.Exception
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface Output
      Throws:
      java.lang.Exception
    • setFilter

      public void setFilter​(java.util.function.Predicate<ResultReadable> filter)
      Specified by:
      setFilter in interface CanFilterResultValue