Package org.elasticsearch.hadoop.handler
Enum Class HandlerResult
- All Implemented Interfaces:
Serializable,Comparable<HandlerResult>,Constable
Values that denote the result of an action taken by an
ErrorHandler.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSignals to the connector that the givenErrorHandlerdetermined that the given failure scenario is grounds to abort the job.Signals to the connector that the givenErrorHandlerwas successfully able to handle the failure scenario, either by swallowing the failure, persisting the operation for examination, or attempting to retry the operation.Signals to the connector that the givenErrorHandlerwas unable to handle the failure scenario. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerResultReturns the enum constant of this class with the specified name.static HandlerResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HANDLED
Signals to the connector that the givenErrorHandlerwas 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
Signals to the connector that the givenErrorHandlerwas unable to handle the failure scenario. In this case, the failure information is passed on to the next configured handler in the chain. -
ABORT
Signals to the connector that the givenErrorHandlerdetermined 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
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
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 nameNullPointerException- if the argument is null
-