@PublicEvolving public enum JobStatus extends Enum<JobStatus>
Enum Constant and Description |
---|
CANCELED
Job has been cancelled.
|
CANCELLING
Job is being cancelled.
|
CREATED
Job is newly created, no task has started to run.
|
FAILED
The job has failed with a non-recoverable task failure.
|
FAILING
The job has failed and is currently waiting for the cleanup to complete.
|
FINISHED
All of the job's tasks have successfully finished.
|
INITIALIZING
The job has been received by the Dispatcher, and is waiting for the job manager to receive
leadership and to be created.
|
RECONCILING
The job is currently reconciling and waits for task execution report to recover state.
|
RESTARTING
The job is currently undergoing a reset and total restart.
|
RUNNING
Some tasks are scheduled or running, some may be pending, some may be finished.
|
SUSPENDED
The job has been suspended which means that it has been stopped but not been removed from a
potential HA job store.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isGloballyTerminalState()
Checks whether this state is globally terminal.
|
boolean |
isTerminalState()
Checks whether this state is locally terminal.
|
static JobStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobStatus INITIALIZING
public static final JobStatus CREATED
public static final JobStatus RUNNING
public static final JobStatus FAILING
public static final JobStatus FAILED
public static final JobStatus CANCELLING
public static final JobStatus CANCELED
public static final JobStatus FINISHED
public static final JobStatus RESTARTING
public static final JobStatus SUSPENDED
public static final JobStatus RECONCILING
public static JobStatus[] values()
for (JobStatus c : JobStatus.values()) System.out.println(c);
public static JobStatus 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 isGloballyTerminalState()
When a globally terminal state has been reached, all recovery data for the job is dropped from the high-availability services.
public boolean isTerminalState()
The only state that is locally terminal, but not globally terminal is SUSPENDED
,
which is typically entered when the executing JobManager loses its leader status.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.