org.peace_tools.workspace
Enum JobBase.JobStatusType

java.lang.Object
  extended by java.lang.Enum<JobBase.JobStatusType>
      extended by org.peace_tools.workspace.JobBase.JobStatusType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JobBase.JobStatusType>
Enclosing class:
JobBase

public static enum JobBase.JobStatusType
extends java.lang.Enum<JobBase.JobStatusType>

Different enumerations defining the last known runtime status of a given Job. These enumerations were introduced to reflect those used in the XML and to ensure that the code is overall more readable.


Enum Constant Summary
FAILED
          The job has completed running but error(s) c
FINISHING
          The job has finished running and the GUI is downloading data files and status information from the server.
QUEUED
          The job has been queued for running, but it has not yet started running.
RUNNING
          The job has got CPU time and is currently running.
STARTING
          This status indicates that the GUI is making attempt to start the job.
SUCCESS
          The job has completed running successfully and all the necessary data files are already available in this workspace.
 
Method Summary
static JobBase.JobStatusType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JobBase.JobStatusType[] 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

STARTING

public static final JobBase.JobStatusType STARTING
This status indicates that the GUI is making attempt to start the job. This involves creating a folder and copying any additional configuration information to that folder.


QUEUED

public static final JobBase.JobStatusType QUEUED
The job has been queued for running, but it has not yet started running. This can happen if a cluster is overloaded with jobs.


RUNNING

public static final JobBase.JobStatusType RUNNING
The job has got CPU time and is currently running.


FINISHING

public static final JobBase.JobStatusType FINISHING
The job has finished running and the GUI is downloading data files and status information from the server.


SUCCESS

public static final JobBase.JobStatusType SUCCESS
The job has completed running successfully and all the necessary data files are already available in this workspace.


FAILED

public static final JobBase.JobStatusType FAILED
The job has completed running but error(s) c

Method Detail

values

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

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

valueOf

public static JobBase.JobStatusType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null