compbio.metadata
Enum JobStatus

java.lang.Object
  extended by java.lang.Enum<JobStatus>
      extended by compbio.metadata.JobStatus
All Implemented Interfaces:
Serializable, Comparable<JobStatus>

public enum JobStatus
extends Enum<JobStatus>

The status of the job.

Version:
1.0 October 2009
Author:
pvtroshin

Enum Constant Summary
CANCELLED
          Jobs that has been cancelled
COLLECTED
          Results has been collected
FAILED
          Failed jobs
FINISHED
          Finished jobs
PENDING
          Jobs which are in the queue and awaiting execution reported for cluster jobs only
RUNNING
          Jobs that are running
STARTED
          Job calculation has been started.
SUBMITTED
          Job has been submitted.
UNDEFINED
          Represents jobs with unknown status
 
Method Summary
static JobStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JobStatus[] 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

PENDING

public static final JobStatus PENDING
Jobs which are in the queue and awaiting execution reported for cluster jobs only


RUNNING

public static final JobStatus RUNNING
Jobs that are running


CANCELLED

public static final JobStatus CANCELLED
Jobs that has been cancelled


FINISHED

public static final JobStatus FINISHED
Finished jobs


FAILED

public static final JobStatus FAILED
Failed jobs


UNDEFINED

public static final JobStatus UNDEFINED
Represents jobs with unknown status


STARTED

public static final JobStatus STARTED
Job calculation has been started. First status reported by the local engine


SUBMITTED

public static final JobStatus SUBMITTED
Job has been submitted. This status is only set for cluster jobs


COLLECTED

public static final JobStatus COLLECTED
Results has been collected

Method Detail

values

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

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

valueOf

public static JobStatus 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