public enum ProgramRunStatus extends Enum<ProgramRunStatus>
| Enum Constant and Description |
|---|
ALL |
COMPLETED |
FAILED |
KILLED |
RUNNING |
SUSPENDED |
| Modifier and Type | Method and Description |
|---|---|
static NodeStatus |
toNodeStatus(ProgramRunStatus status)
Conversion from program run status to Workflow node status.
|
static ProgramRunStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProgramRunStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProgramRunStatus ALL
public static final ProgramRunStatus RUNNING
public static final ProgramRunStatus SUSPENDED
public static final ProgramRunStatus COMPLETED
public static final ProgramRunStatus FAILED
public static final ProgramRunStatus KILLED
public static ProgramRunStatus[] values()
for (ProgramRunStatus c : ProgramRunStatus.values()) System.out.println(c);
public static ProgramRunStatus 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 NodeStatus toNodeStatus(ProgramRunStatus status)
status - the program run status to be convertedCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.