Last update: 2011-06-23

org.proteios.core
Enum Job.Status

java.lang.Object
  extended by java.lang.Enum<Job.Status>
      extended by org.proteios.core.Job.Status
All Implemented Interfaces:
Serializable, Comparable<Job.Status>
Enclosing class:
Job

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

The status of a job.


Enum Constant Summary
ABORTED
          The job was aborted.
ABORTING
          The job command was aborted but the job is executing.
DONE
          The job has finished successfully.
ERROR
          The job has finished with an error.
EXECUTING
          The job is executing.
UNCONFIGURED
          The job hasn't been configured yet.
WAITING
          The job is waiting to be started.
 
Method Summary
static Job.Status fromValue(int value)
          Get the Job.Status object when you know the integer code.
 int getValue()
          Get the integer value that is used when storing a Job.Status to the database.
 String toString()
           
static Job.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Job.Status[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNCONFIGURED

public static final Job.Status UNCONFIGURED
The job hasn't been configured yet.


WAITING

public static final Job.Status WAITING
The job is waiting to be started.


EXECUTING

public static final Job.Status EXECUTING
The job is executing.


DONE

public static final Job.Status DONE
The job has finished successfully.


ERROR

public static final Job.Status ERROR
The job has finished with an error.


ABORTING

public static final Job.Status ABORTING
The job command was aborted but the job is executing.


ABORTED

public static final Job.Status ABORTED
The job was aborted.

Method Detail

values

public static Job.Status[] 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.Status c : Job.Status.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.Status 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

fromValue

public static Job.Status fromValue(int value)
Get the Job.Status object when you know the integer code.

Parameters:
value - The integer value.
Returns:
The type object or null if the value is unknown

toString

public String toString()
Overrides:
toString in class Enum<Job.Status>

getValue

public int getValue()
Get the integer value that is used when storing a Job.Status to the database.

Returns:
The intger value of this type

Last update: 2011-06-23