Enum Constant | Description |
---|---|
FINISHED |
Job has finished successfully or otherwise; will not progress further.
|
ILLEGAL |
Not a defined phase string.
|
RUNNING |
Job is progressing; should reach FINISHED stage eventually.
|
UNKNOWN |
UNKNOWN phase; may change in future.
|
UNSTARTED |
Job will not complete of its own accord; need to post RUN phase.
|
Modifier and Type | Method | Description |
---|---|---|
static UwsStage |
forPhase(java.lang.String phase) |
Returns the stage corresponding to a given UWS phase.
|
java.util.Collection<java.lang.String> |
getPhaseList() |
Returns the phases which correspond to this stage.
|
static UwsStage |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static UwsStage[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UwsStage UNSTARTED
public static final UwsStage RUNNING
public static final UwsStage FINISHED
public static final UwsStage UNKNOWN
public static final UwsStage ILLEGAL
public static UwsStage[] values()
for (UwsStage c : UwsStage.values()) System.out.println(c);
public static UwsStage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.Collection<java.lang.String> getPhaseList()
public static UwsStage forPhase(java.lang.String phase)
phase
- UWS phase stringCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.