Enum Class LifeCycleState

java.lang.Object
java.lang.Enum<LifeCycleState>
com.atlassian.bamboo.builder.LifeCycleState
All Implemented Interfaces:
Serializable, Comparable<LifeCycleState>, Constable

public enum LifeCycleState extends Enum<LifeCycleState>
  • Enum Constant Details

    • 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 Details

  • Method Details

    • values

      public static LifeCycleState[] 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

      public static LifeCycleState valueOf(String name)
      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 name
      NullPointerException - 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:
      toString in class Enum<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)