public enum ExecutionPhase extends java.lang.Enum<ExecutionPhase>
The transitions of the state machine described by the IVOA are implemented
in a different class: JobPhase
.
JobPhase
Enum Constant and Description |
---|
ABORTED
The job has been manually aborted by the user, or the system has aborted
the job due to lack of or overuse of resources.
|
ARCHIVED
At destruction time the results associated with a job have been deleted
to free up resource, but the metadata associated with the job have been
retained.
|
COMPLETED
The execution of the job is over.
|
ERROR
The job failed to complete.
|
EXECUTING
The job has been assigned to a processor.
|
HELD
The job is HELD pending execution and will not automatically be executed
(cf
PENDING ). |
PENDING
The job is accepted by the service but not yet committed for execution by
the client.
|
QUEUED
The job is committed for execution by the client but the service has not
yet assigned it to a processor.
|
SUSPENDED
The job has been suspended by the system during execution.
|
UNKNOWN
The job is in an unknown state.
|
Modifier and Type | Method and Description |
---|---|
static ExecutionPhase |
getPhase(java.lang.String phStr)
Get the Execution Phase corresponding to the given label.
|
static java.lang.String |
getStr(ExecutionPhase ph)
Get the label of the given Execution Phase.
|
static ExecutionPhase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExecutionPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutionPhase PENDING
public static final ExecutionPhase QUEUED
public static final ExecutionPhase EXECUTING
public static final ExecutionPhase COMPLETED
public static final ExecutionPhase ERROR
public static final ExecutionPhase ABORTED
public static final ExecutionPhase UNKNOWN
Note: If the UWS reports an UNKNOWN phase, then all the client can do is re-query the phase until a known phase is reported.
Allowed previous phases: any.
Possible next phases: any.
public static final ExecutionPhase HELD
PENDING
).
Note: A UWS may place a job in a HELD phase on receipt of a PHASE=RUN request if for some reason the job cannot be immediately queued - in this case it is the responsibility of the client to request PHASE=RUN again at some later time.
public static final ExecutionPhase SUSPENDED
Allowed previous phases:
EXECUTING
.
public static final ExecutionPhase ARCHIVED
Allowed previous phases:
ABORTED
, COMPLETED
or ERROR
.
Possible next phases: none.
public static ExecutionPhase[] values()
for (ExecutionPhase c : ExecutionPhase.values()) System.out.println(c);
public static ExecutionPhase 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 static final java.lang.String getStr(ExecutionPhase ph)
Note:
The reverse operation is getPhase(String)
.
ph
- An Execution Phase.UNKNOWN
if NULL is given.public static final ExecutionPhase getPhase(java.lang.String phStr)
Note:
The reverse operation is getStr(ExecutionPhase)
.
phStr
- Label of the Execution Phase to resolve.ExecutionPhase
,
or UNKNOWN
if the given String is NULL
or does not match any legal Execution Phase.