public enum LifeCycleState extends Enum<LifeCycleState>
Enum Constant and Description |
---|
FINISHED
The Build finished
|
IN_PROGRESS
The build is really building, so once checkout started on agent
|
NOT_BUILT
The Build was not built
|
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
|
Modifier and Type | Field and Description |
---|---|
static EnumSet<LifeCycleState> |
ACTIVE_STATES |
static EnumSet<LifeCycleState> |
FINAL_STATES |
Modifier and Type | Method and Description |
---|---|
static LifeCycleState |
getInstance(String state)
Returns the appropriate enum value from the given state string
|
String |
getValue() |
static boolean |
isActive(LifeCycleState lifeCycleState) |
static boolean |
isExpectedStateTransition(LifeCycleState oldState,
LifeCycleState newState) |
static boolean |
isFinalized(LifeCycleState lifeCycleState) |
static boolean |
isFinished(LifeCycleState lifeCycleState) |
static boolean |
isInProgress(LifeCycleState lifeCycleState) |
static boolean |
isNotBuilt(LifeCycleState lifeCycleState) |
static boolean |
isPending(LifeCycleState lifeCycleState) |
static boolean |
isQueued(LifeCycleState lifeCycleState) |
static boolean |
isWaiting(LifeCycleState lifeCycleState) |
static Collection<String> |
lifeCycleStatesToStringCollection(Collection<LifeCycleState> lifeCycleStates) |
String |
toString()
Is required because of Hibernate
|
static LifeCycleState |
valueOf(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.
|
public static final LifeCycleState PENDING
public static final LifeCycleState QUEUED
public static final LifeCycleState IN_PROGRESS
public static final LifeCycleState FINISHED
public static final LifeCycleState NOT_BUILT
public static final EnumSet<LifeCycleState> ACTIVE_STATES
public static final EnumSet<LifeCycleState> FINAL_STATES
public static LifeCycleState[] values()
for (LifeCycleState c : LifeCycleState.values()) System.out.println(c);
public static LifeCycleState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LifeCycleState getInstance(String state)
state
- @NotNull public String getValue()
public String toString()
toString
in class Enum<LifeCycleState>
public static boolean isPending(@Nullable LifeCycleState lifeCycleState)
public static boolean isQueued(@Nullable LifeCycleState lifeCycleState)
public static boolean isWaiting(@Nullable LifeCycleState lifeCycleState)
public static boolean isActive(@Nullable LifeCycleState lifeCycleState)
public static boolean isFinalized(@Nullable LifeCycleState lifeCycleState)
public static boolean isInProgress(@Nullable LifeCycleState lifeCycleState)
public static boolean isFinished(@Nullable LifeCycleState lifeCycleState)
public static boolean isNotBuilt(@Nullable LifeCycleState lifeCycleState)
public static Collection<String> lifeCycleStatesToStringCollection(@NotNull Collection<LifeCycleState> lifeCycleStates)
public static boolean isExpectedStateTransition(@Nullable LifeCycleState oldState, @NotNull LifeCycleState newState)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.