public enum ExecutionState extends Enum<ExecutionState>
CREATED
and switch states according to this diagram:
CREATED -> SCHEDULED -> DEPLOYING -> INITIALIZING -> RUNNING -> FINISHED
| | | | |
| | | +-----+--------------+
| | V V
| | CANCELLING -----+----> CANCELED
| | |
| +-------------------------+
|
| ... -> FAILED
V
RECONCILING -> INITIALIZING | RUNNING | FINISHED | CANCELED | FAILED
It is possible to enter the RECONCILING
state from CREATED
state if job
manager fail over, and the RECONCILING
state can switch into any existing task state.
It is possible to enter the FAILED
state from any other state.
The states FINISHED
, CANCELED
, and FAILED
are considered terminal
states.
Enum Constant and Description |
---|
CANCELED |
CANCELING |
CREATED |
DEPLOYING |
FAILED |
FINISHED
This state marks "successfully completed".
|
INITIALIZING
Restoring last possible valid state of the task if it has it.
|
RECONCILING |
RUNNING |
SCHEDULED |
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminal() |
static ExecutionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecutionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutionState CREATED
public static final ExecutionState SCHEDULED
public static final ExecutionState DEPLOYING
public static final ExecutionState RUNNING
public static final ExecutionState FINISHED
public static final ExecutionState CANCELING
public static final ExecutionState CANCELED
public static final ExecutionState FAILED
public static final ExecutionState RECONCILING
public static final ExecutionState INITIALIZING
public static ExecutionState[] values()
for (ExecutionState c : ExecutionState.values()) System.out.println(c);
public static ExecutionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTerminal()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.