- All Implemented Interfaces:
Serializable,Comparable<GraphState>,java.lang.constant.Constable
Describes the state of a
LogicalGraphInstance.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe instance is ready to be executed.The instance was canceled while executing.The instance had an error while executing.The instance has finished execution.The instance is currently executing. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the state corresponds to a "complete" state.abstract JobStatusReturns the job status that corresponds to the given graph status.static GraphStateReturns the enum constant of this class with the specified name.static GraphState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPILED
The instance is ready to be executed. -
EXECUTING
The instance is currently executing. -
COMPLETE_SUCCESS
The instance has finished execution. -
COMPLETE_CANCELED
The instance was canceled while executing. -
COMPLETE_FAILED
The instance had an error while executing.
-
-
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. A graph is considered "complete" if it is no longer running whether due to success, failure, or cancellation- Returns:
- whether the state is a "complete" state
-
jobStatus
Returns the job status that corresponds to the given graph status.- Returns:
-