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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminalState() |
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 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 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 isTerminalState()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.