Package com.atlassian.bamboo.builder
Enum Class LifeCycleState
- All Implemented Interfaces:
Serializable
,Comparable<LifeCycleState>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe Build finishedThe build is really building, so once checkout started on agentThe Build was not builtThe build pending status - as long as the build is not queuedThe build is queued, as long as agent hasn't started the build process -
Field Summary
Modifier and TypeFieldDescriptionstatic final EnumSet<LifeCycleState>
static final EnumSet<LifeCycleState>
-
Method Summary
Modifier and TypeMethodDescriptionstatic LifeCycleState
getInstance
(String state) Returns the appropriate enum value from the given state string@NotNull String
getValue()
static boolean
isActive
(@Nullable LifeCycleState lifeCycleState) static boolean
isExpectedStateTransition
(@Nullable LifeCycleState oldState, @NotNull LifeCycleState newState) static boolean
isFinalized
(@Nullable LifeCycleState lifeCycleState) static boolean
isFinished
(@Nullable LifeCycleState lifeCycleState) static boolean
isInProgress
(@Nullable LifeCycleState lifeCycleState) static boolean
isNotBuilt
(@Nullable LifeCycleState lifeCycleState) static boolean
isPending
(@Nullable LifeCycleState lifeCycleState) static boolean
isQueued
(@Nullable LifeCycleState lifeCycleState) static boolean
isWaiting
(@Nullable LifeCycleState lifeCycleState) static Collection<String>
lifeCycleStatesToStringCollection
(@NotNull Collection<LifeCycleState> lifeCycleStates) toString()
Is required because of Hibernatestatic LifeCycleState
Returns the enum constant of this class with the specified name.static LifeCycleState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
The build pending status - as long as the build is not queued -
QUEUED
The build is queued, as long as agent hasn't started the build process -
IN_PROGRESS
The build is really building, so once checkout started on agent -
FINISHED
The Build finished -
NOT_BUILT
The Build was not built
-
-
Field Details
-
ACTIVE_STATES
-
FINAL_STATES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getInstance
Returns the appropriate enum value from the given state string- Parameters:
state
-- Returns:
- LifeCycleState object corresponding to input state
-
getValue
-
toString
Is required because of Hibernate- Overrides:
toString
in classEnum<LifeCycleState>
- Returns:
-
isPending
-
isQueued
-
isWaiting
-
isActive
-
isFinalized
-
isInProgress
-
isFinished
-
isNotBuilt
-
lifeCycleStatesToStringCollection
public static Collection<String> lifeCycleStatesToStringCollection(@NotNull @NotNull Collection<LifeCycleState> lifeCycleStates) -
isExpectedStateTransition
public static boolean isExpectedStateTransition(@Nullable @Nullable LifeCycleState oldState, @NotNull @NotNull LifeCycleState newState)
-