Class LoggingOutput

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

public class LoggingOutput extends Object implements Output, CanFilterResultValue
  • Constructor Details

    • LoggingOutput

      public LoggingOutput(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 Exception
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Output
      Throws:
      Exception
    • setFilter

      public void setFilter(Predicate<ResultReadable> filter)
      Specified by:
      setFilter in interface CanFilterResultValue