Enum Class HandlerResult

java.lang.Object
java.lang.Enum<HandlerResult>
org.elasticsearch.hadoop.handler.HandlerResult
All Implemented Interfaces:
Serializable, Comparable<HandlerResult>, Constable

public enum HandlerResult extends Enum<HandlerResult>
Values that denote the result of an action taken by an ErrorHandler.
  • Enum Constant Details

    • HANDLED

      public static final HandlerResult HANDLED
      Signals to the connector that the given ErrorHandler was successfully able to handle the failure scenario, either by swallowing the failure, persisting the operation for examination, or attempting to retry the operation. In this case, the handling for this failure instance is stopped and no further handlers in the chain will be called.
    • PASS

      public static final HandlerResult PASS
      Signals to the connector that the given ErrorHandler was unable to handle the failure scenario. In this case, the failure information is passed on to the next configured handler in the chain.
    • ABORT

      public static final HandlerResult ABORT
      Signals to the connector that the given ErrorHandler determined that the given failure scenario is grounds to abort the job. In this case, the original error information will be extracted and thrown with no further handlers in the chain being called.
  • Method Details

    • values

      public static HandlerResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HandlerResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null