Package com.atlassian.bamboo.builder
Enum LifeCycleState
- java.lang.Object
-
- java.lang.Enum<LifeCycleState>
-
- com.atlassian.bamboo.builder.LifeCycleState
-
- All Implemented Interfaces:
Serializable,Comparable<LifeCycleState>
public enum LifeCycleState extends Enum<LifeCycleState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINISHEDThe Build finishedIN_PROGRESSThe build is really building, so once checkout started on agentNOT_BUILTThe Build was not builtPENDINGThe build pending status - as long as the build is not queuedQUEUEDThe build is queued, as long as agent hasn't started the build process
-
Field Summary
Fields Modifier and Type Field Description static EnumSet<LifeCycleState>ACTIVE_STATESstatic EnumSet<LifeCycleState>FINAL_STATES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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)StringtoString()Is required because of Hibernatestatic LifeCycleStatevalueOf(String name)Returns the enum constant of this type with the specified name.static LifeCycleState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final LifeCycleState PENDING
The build pending status - as long as the build is not queued
-
QUEUED
public static final LifeCycleState QUEUED
The build is queued, as long as agent hasn't started the build process
-
IN_PROGRESS
public static final LifeCycleState IN_PROGRESS
The build is really building, so once checkout started on agent
-
FINISHED
public static final LifeCycleState FINISHED
The Build finished
-
NOT_BUILT
public static final LifeCycleState NOT_BUILT
The Build was not built
-
-
Field Detail
-
ACTIVE_STATES
public static final EnumSet<LifeCycleState> ACTIVE_STATES
-
FINAL_STATES
public static final EnumSet<LifeCycleState> FINAL_STATES
-
-
Method Detail
-
values
public static LifeCycleState[] 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 (LifeCycleState c : LifeCycleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LifeCycleState 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 nameNullPointerException- if the argument is null
-
getInstance
public static LifeCycleState getInstance(String state)
Returns the appropriate enum value from the given state string- Parameters:
state-- Returns:
- LifeCycleState object corresponding to input state
-
getValue
@NotNull public @NotNull String getValue()
-
toString
public String toString()
Is required because of Hibernate- Overrides:
toStringin classEnum<LifeCycleState>- Returns:
-
isPending
public static boolean isPending(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isQueued
public static boolean isQueued(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isWaiting
public static boolean isWaiting(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isActive
public static boolean isActive(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isFinalized
public static boolean isFinalized(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isInProgress
public static boolean isInProgress(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isFinished
public static boolean isFinished(@Nullable @Nullable LifeCycleState lifeCycleState)
-
isNotBuilt
public static boolean isNotBuilt(@Nullable @Nullable LifeCycleState lifeCycleState)
-
lifeCycleStatesToStringCollection
public static Collection<String> lifeCycleStatesToStringCollection(@NotNull @NotNull Collection<LifeCycleState> lifeCycleStates)
-
isExpectedStateTransition
public static boolean isExpectedStateTransition(@Nullable @Nullable LifeCycleState oldState, @NotNull @NotNull LifeCycleState newState)
-
-