- All Implemented Interfaces:
Serializable,Comparable<OperatorState>,java.lang.constant.Constable
The execution state of an operator within a graph.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operator is ready to be executedThe operator was cancelledThe operator failed and was the primary cause of the failure of the graphThe operator failed because it was in a graph that failedThe operator has completed sucessfullyThe operator is currently executingThe operator has not been compiled yet, usually because it is waiting for upstream metadata -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the state corresponds to a "complete" state.static OperatorStateReturns the enum constant of this class with the specified name.static OperatorState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
The operator has not been compiled yet, usually because it is waiting for upstream metadata -
COMPILED
The operator is ready to be executed -
EXECUTING
The operator is currently executing -
COMPLETE_SUCCESS
The operator has completed sucessfully -
COMPLETE_CANCELED
The operator was cancelled -
COMPLETE_FAILED_PRIMARY_ERROR
The operator failed and was the primary cause of the failure of the graph -
COMPLETE_FAILED_SECONDARY_ERROR
The operator failed because it was in a graph that failed
-
-
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
-
isComplete
public boolean isComplete()Returns true if the state corresponds to a "complete" state. An operator is considered "complete" if it is no longer running whether due to success, failure, or cancellation- Returns:
- whether the state is a "complete" state
-