public enum InternalJobStatus extends Enum<InternalJobStatus>
ExecutionGraph can have during its lifetime. It
contains all states from JobStatus but also internal states to keep track of shutdown processes.
This class is thread-safe.
| Enum Constant and Description |
|---|
CANCELED
All tasks of the job are canceled as a result of a user request.
|
CANCELING
At least one task has been canceled as a result of a user request.
|
CREATED
All tasks of the job are in the execution state CREATED.
|
FAILED
At least one task of the job has definitively failed and cannot
be recovered anymore.
|
FAILING
At least one task of the job has definitely failed and cannot be recovered.
|
FINISHED
All of the job's tasks have successfully finished.
|
RUNNING
At least one task of the job is running, none has definitely failed.
|
SCHEDULED
All tasks of the job have been accepted by the scheduler, resources have been requested
|
| Modifier and Type | Method and Description |
|---|---|
static JobStatus |
toJobStatus(InternalJobStatus status)
Converts an internal job status in a
JobStatus state. |
static InternalJobStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternalJobStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternalJobStatus CREATED
public static final InternalJobStatus SCHEDULED
public static final InternalJobStatus RUNNING
public static final InternalJobStatus FAILING
public static final InternalJobStatus FAILED
public static final InternalJobStatus CANCELING
public static final InternalJobStatus CANCELED
public static final InternalJobStatus FINISHED
public static InternalJobStatus[] values()
for (InternalJobStatus c : InternalJobStatus.values()) System.out.println(c);
public static InternalJobStatus 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 static JobStatus toJobStatus(InternalJobStatus status)
JobStatus state.status - the internal job status to converted.null if no corresponding job status existsCopyright © 2014 The Apache Software Foundation. All rights reserved.