org.gridlab.gat.resources
Enum Job.JobState

java.lang.Object
  extended by java.lang.Enum<Job.JobState>
      extended by org.gridlab.gat.resources.Job.JobState
All Implemented Interfaces:
Serializable, Comparable<Job.JobState>
Enclosing interface:
Job

public static enum Job.JobState
extends Enum<Job.JobState>

An instance of this enumeration indicates the state of a Job.

Author:
rkemp

Enum Constant Summary
INITIAL
          Initial state indicator.
ON_HOLD
          The Job has been paused.
POST_STAGING
          The output files of the Job are being post staged.
PRE_STAGING
          The input files of the Job are being pre staged.
RUNNING
          Running state indicator.
SCHEDULED
          Scheduled state indicator.
STOPPED
          Stopped state indicator.
SUBMISSION_ERROR
          Submission error state indicator.
UNKNOWN
          The Job state is unknown for some reason.
 
Method Summary
static Job.JobState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Job.JobState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INITIAL

public static final Job.JobState INITIAL
Initial state indicator. The Job has been constructed.


SCHEDULED

public static final Job.JobState SCHEDULED
Scheduled state indicator. The Job has been submitted to a resource broker and is scheduled to be executed.


RUNNING

public static final Job.JobState RUNNING
Running state indicator. The Job is executing.


STOPPED

public static final Job.JobState STOPPED
Stopped state indicator. The Job has properly run. All the cleanup and administration of the Job is completely done.


SUBMISSION_ERROR

public static final Job.JobState SUBMISSION_ERROR
Submission error state indicator. The Job hasn't properly run. All the cleanup and administration of the Job is completely done.


ON_HOLD

public static final Job.JobState ON_HOLD
The Job has been paused. The Job has been paused by the user.


PRE_STAGING

public static final Job.JobState PRE_STAGING
The input files of the Job are being pre staged.


POST_STAGING

public static final Job.JobState POST_STAGING
The output files of the Job are being post staged.


UNKNOWN

public static final Job.JobState UNKNOWN
The Job state is unknown for some reason. It might be a network problem.

Method Detail

values

public static Job.JobState[] 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 (Job.JobState c : Job.JobState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Job.JobState 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