com.buildforge.services.common.dbo
Enum BuildDBO.State

java.lang.Object
  extended by java.lang.Enum<BuildDBO.State>
      extended by com.buildforge.services.common.dbo.BuildDBO.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BuildDBO.State>
Enclosing class:
BuildDBO

public static enum BuildDBO.State
extends java.lang.Enum<BuildDBO.State>

Identifies the run state of the build. The value is interpreted as follows:

ValueMeaning
WAITINGThe build record has been created, but no engine has taken ownership of it, yet.
PENDINGAn engine has claimed the build as its own, but the build process has not yet started.
RUNNINGThe build is in progress.
COMPLETEDThe build is complete.
LOCKEDThe build has been locked by a user to prevent it from being purged.
ARCHIVEDThe build has been purged, but its build class had a BuildClassDBO.PurgeType setting that did not include the console data. Therefore, the engine archived the build record instead of purging it.


Enum Constant Summary
ARCHIVED
           
COMPLETED
           
LOCKED
           
PENDING
           
RUNNING
           
WAITING
           
 
Field Summary
static java.lang.Class<BuildDBO.State> CLASS
           
 char code
           
 
Method Summary
static BuildDBO.State fromDB(char code)
           
static BuildDBO.State fromObject(java.lang.Object o)
           
static BuildDBO.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BuildDBO.State[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

WAITING

public static final BuildDBO.State WAITING

PENDING

public static final BuildDBO.State PENDING

RUNNING

public static final BuildDBO.State RUNNING

COMPLETED

public static final BuildDBO.State COMPLETED

LOCKED

public static final BuildDBO.State LOCKED

ARCHIVED

public static final BuildDBO.State ARCHIVED
Field Detail

CLASS

public static final java.lang.Class<BuildDBO.State> CLASS

code

public final char code
Method Detail

values

public static final BuildDBO.State[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(BuildDBO.State c : BuildDBO.State.values())
        System.out.println(c);

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

valueOf

public static BuildDBO.State 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

fromDB

public static BuildDBO.State fromDB(char code)

fromObject

public static BuildDBO.State fromObject(java.lang.Object o)
                                 throws APIException
Throws:
APIException