eu.unicore.hila.grid
Enum TaskStatus

java.lang.Object
  extended by java.lang.Enum<TaskStatus>
      extended by 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

Enum Constant Summary
ABORTED
           
FAILED
           
NEW
           
PENDING
           
RUNNING
           
SUCCESSFUL
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.