public static enum TaskStatus.State extends Enum<TaskStatus.State>
| Enum Constant and Description | 
|---|
| EXPIREEXPIRE State refers to when a task is expired. | 
| FAILEDFAILED State is assigned when task fails. | 
| INITINIT State refers to Task initialization. | 
| KILLEDKILLED State refers to when a task is killed. | 
| RUNNINGRUNNING State refers to Task in Running state. | 
| SUCCEEDEDSUCCEEDED State is assigned when task finishes successfully. | 
| Modifier and Type | Method and Description | 
|---|---|
| static TaskStatus.State | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static TaskStatus.State[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final TaskStatus.State INIT
public static final TaskStatus.State RUNNING
public static final TaskStatus.State SUCCEEDED
public static final TaskStatus.State FAILED
public static final TaskStatus.State KILLED
public static final TaskStatus.State EXPIRE
public static TaskStatus.State[] values()
for (TaskStatus.State c : TaskStatus.State.values()) System.out.println(c);
public static TaskStatus.State 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 nullCopyright © 2008–2023 Apache Software Foundation. All rights reserved.