Class HistogramErrorHandler

java.lang.Object
io.nosqlbench.engine.api.activityapi.errorhandling.modular.handlers.HistogramErrorHandler
All Implemented Interfaces:
ErrorMetrics.Aware, ErrorHandler

public class HistogramErrorHandler extends Object implements ErrorHandler, ErrorMetrics.Aware
The histogram error handler will create, if needed, a histogram metrics object for the named "errorhistos.simplename" + e.getClass().getSimpleName(), and then add the current session time to it.
  • Constructor Details

    • HistogramErrorHandler

      public HistogramErrorHandler()
  • Method Details

    • handleError

      public ErrorDetail handleError(String name, 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
      Parameters:
      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
    • setErrorMetricsSupplier

      public void setErrorMetricsSupplier(Supplier<ErrorMetrics> supplier)
      Specified by:
      setErrorMetricsSupplier in interface ErrorMetrics.Aware