Enum Class StepAttemptProgress
- All Implemented Interfaces:
Serializable, Comparable<StepAttemptProgress>, Constable
Describes how far a failed Step method progressed across all its attempts.
Use RecoveryErrorInfo.getAttemptProgress() during recovery to decide whether handler
side effects may need reconciliation. Only NOT_STARTED rules out handler execution.
See that accessor for an example.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSome attempt may have run, but none completed; side effects may have happened.The handler did not run in any attempt of this Step method call.The Server did not report progress; treat this asNOT_COMPLETED. -
Method Summary
Modifier and TypeMethodDescriptionstatic StepAttemptProgressReturns the enum constant of this class with the specified name.static StepAttemptProgress[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
The Server did not report progress; treat this asNOT_COMPLETED. -
NOT_STARTED
The handler did not run in any attempt of this Step method call. -
NOT_COMPLETED
Some attempt may have run, but none completed; side effects may have happened.
-
-
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
-