TraverseExceptionHandlerFactory

public class TraverseExceptionHandlerFactory extends Object

Constructs an ExceptionHandler based up on configuration options.

Optional configuration parameters:

  • traverse.exceptionHandler - Specifies the action to take if the traversal encounters exceptions: always abort (“0”), never abort ("ignore"), abort only after # exceptions are encountered ("10").
  • abortExceptionHander.backoffMilliSeconds - Specifies the backoff time in milliseconds to wait between detected handler exceptions (typically used when traversing a repository).

Constant Summary

String EXCEPTION_HANDLER_BACKOFF
String TRAVERSE_EXCEPTION_HANDLER

Public Method Summary

static ExceptionHandler
createFromConfig()
Creates an ExceptionHandler from a single call, as defined by the configuration file.

Inherited Method Summary

Constants

public static final String EXCEPTION_HANDLER_BACKOFF

Constant Value: "abortExceptionHander.backoffMilliSeconds"

public static final String TRAVERSE_EXCEPTION_HANDLER

Constant Value: "traverse.exceptionHandler"

Public Methods

public static ExceptionHandler createFromConfig ()

Creates an ExceptionHandler from a single call, as defined by the configuration file.

Returns
  • configured exception handler

Send feedback about...

Cloud Search
Cloud Search