java.lang.Object
io.nosqlbench.engine.api.activityapi.errorhandling.modular.ResultCode
All Implemented Interfaces:
ErrorHandler, io.nosqlbench.nb.api.config.standard.NBConfigModelProvider, io.nosqlbench.nb.api.config.standard.NBMapConfigurable

public class ResultCode
extends java.lang.Object
implements ErrorHandler, io.nosqlbench.nb.api.config.standard.NBMapConfigurable
  • Constructor Summary

    Constructors 
    Constructor Description
    ResultCode()  
  • Method Summary

    Modifier and Type Method Description
    void applyConfig​(java.util.Map<java.lang.String,​?> providedConfig)  
    io.nosqlbench.nb.api.config.standard.NBConfigModel getConfigModel()  
    ErrorDetail handleError​(java.lang.String name, java.lang.Throwable t, long cycle, long durationInNanos, ErrorDetail detail)
    An error handler is able to do side-effect processing for a particular error type, as well as modify the error detail that will be presented back to the caller.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • handleError

      public ErrorDetail handleError​(java.lang.String name, java.lang.Throwable t, long cycle, long durationInNanos, ErrorDetail detail)
      Description copied from interface: ErrorHandler
      An error handler is able to do side-effect processing for a particular error type, as well as modify the error detail that will be presented back to the caller.
      Specified by:
      handleError in interface ErrorHandler
      t - Thrown from within the activity's action loop
      cycle - The cycle which was executing when it ran
      durationInNanos - How long into an operation the error occured
      Returns:
      true if the operation should be retried, assuming retries available
    • applyConfig

      public void applyConfig​(java.util.Map<java.lang.String,​?> providedConfig)
      Specified by:
      applyConfig in interface io.nosqlbench.nb.api.config.standard.NBMapConfigurable
    • getConfigModel

      public io.nosqlbench.nb.api.config.standard.NBConfigModel getConfigModel()
      Specified by:
      getConfigModel in interface io.nosqlbench.nb.api.config.standard.NBConfigModelProvider