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 ConstantsEnum 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
FieldsModifier and TypeFieldDescriptionstatic final EnumSet<LifeCycleState> static final EnumSet<LifeCycleState> -
Method Summary
Modifier and TypeMethodDescriptionstatic LifeCycleStategetInstance(String state) Returns the appropriate enum value from the given state string@NotNull StringgetValue()static booleanisActive(@Nullable LifeCycleState lifeCycleState) static booleanisExpectedStateTransition(@Nullable LifeCycleState oldState, @NotNull LifeCycleState newState) static booleanisFinalized(@Nullable LifeCycleState lifeCycleState) static booleanisFinished(@Nullable LifeCycleState lifeCycleState) static booleanisInProgress(@Nullable LifeCycleState lifeCycleState) static booleanisNotBuilt(@Nullable LifeCycleState lifeCycleState) static booleanisPending(@Nullable LifeCycleState lifeCycleState) static booleanisQueued(@Nullable LifeCycleState lifeCycleState) static booleanisWaiting(@Nullable LifeCycleState lifeCycleState) static Collection<String> lifeCycleStatesToStringCollection(@NotNull Collection<LifeCycleState> lifeCycleStates) toString()Is required because of Hibernatestatic LifeCycleStateReturns 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:
toStringin 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)
-