com.buildforge.services.common.dbo
Enum BuildClassDBO.PurgeType

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

public static enum BuildClassDBO.PurgeType
extends java.lang.Enum<BuildClassDBO.PurgeType>

Identifies what is deleted and what is kept when a build is purged. There are three types of information that can be purged: the console data, the step output logs, and the build directory on the agent.

For those purge types that do not purge the console data, purging the build will move it to the archived state. If a purge is requested for a build that has been ARCHIVED in this way, then EVERYTHING will be purged, regardless of the class setting. The table that follows indicates what is purged for each type:

ValueConsoleLogsFiles
EVERYTHING XXX
CONSOLE_DATA X--
LOGS_AND_FILES-XX
LOGS -X-
FILES --X
NOTHING ---


Enum Constant Summary
CONSOLE_DATA
           
EVERYTHING
           
FILES
           
LOGS
           
LOGS_AND_FILES
           
NOTHING
           
 
Field Summary
static java.lang.Class<BuildClassDBO.PurgeType> CLASS
           
 char code
           
 
Method Summary
static BuildClassDBO.PurgeType fromDB(char c)
           
static BuildClassDBO.PurgeType fromObject(java.lang.Object o)
           
static BuildClassDBO.PurgeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BuildClassDBO.PurgeType[] 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

CONSOLE_DATA

public static final BuildClassDBO.PurgeType CONSOLE_DATA

LOGS_AND_FILES

public static final BuildClassDBO.PurgeType LOGS_AND_FILES

EVERYTHING

public static final BuildClassDBO.PurgeType EVERYTHING

FILES

public static final BuildClassDBO.PurgeType FILES

LOGS

public static final BuildClassDBO.PurgeType LOGS

NOTHING

public static final BuildClassDBO.PurgeType NOTHING
Field Detail

CLASS

public static final java.lang.Class<BuildClassDBO.PurgeType> CLASS

code

public final char code
Method Detail

values

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

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

valueOf

public static BuildClassDBO.PurgeType 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 BuildClassDBO.PurgeType fromDB(char c)

fromObject

public static BuildClassDBO.PurgeType fromObject(java.lang.Object o)
                                          throws APIException
Throws:
APIException