eu.unicore.hila.grid
Enum TaskStatus
java.lang.Object
java.lang.Enum<TaskStatus>
eu.unicore.hila.grid.TaskStatus
- All Implemented Interfaces:
- Serializable, Comparable<TaskStatus>
public enum TaskStatus
- extends Enum<TaskStatus>
A Task
's status. Final stati are
SUCCESSFUL
, FAILED
, ABORTED
The mapping of implementation stati to these is up to the implementation.
- Author:
- bjoernh
29.05.2009 10:49:28
Method Summary |
boolean |
isFinalState()
Check whether this status is final |
static TaskStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TaskStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NEW
public static final TaskStatus NEW
PENDING
public static final TaskStatus PENDING
RUNNING
public static final TaskStatus RUNNING
FAILED
public static final TaskStatus FAILED
ABORTED
public static final TaskStatus ABORTED
SUCCESSFUL
public static final TaskStatus SUCCESSFUL
values
public static TaskStatus[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TaskStatus c : TaskStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TaskStatus valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
isFinalState
public boolean isFinalState()
- Check whether this status is final
- Parameters:
_status
-
- Returns:
true
if the current status is final,
false
otherwise.- Since:
- 2.4.0
Copyright © 2010-2013 UNICORE. All Rights Reserved.