Enum PodPhase
- java.lang.Object
-
- java.lang.Enum<PodPhase>
-
- com.atlassian.bamboo.agent.ephemeral.PodPhase
-
- All Implemented Interfaces:
Serializable
,Comparable<PodPhase>
public enum PodPhase extends Enum<PodPhase>
- Since:
- 9.3
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED
Containers in the pod terminated with failurePENDING
Pod creation has been requestedRUNNING
At least one of pod's containers started with status OKSUCCEEDED
Containers in the pod terminated with successUNDEFINED
Status unknown
-
Field Summary
Fields Modifier and Type Field Description static List<PodPhase>
ACTIVE_PHASES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull PodPhase
fromValue(@Nullable String value)
String
getIcon()
String
getValue()
boolean
isActive()
static boolean
isWorking(PodPhase podPhase)
static PodPhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static PodPhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final PodPhase PENDING
Pod creation has been requested
-
RUNNING
public static final PodPhase RUNNING
At least one of pod's containers started with status OK
-
SUCCEEDED
public static final PodPhase SUCCEEDED
Containers in the pod terminated with success
-
FAILED
public static final PodPhase FAILED
Containers in the pod terminated with failure
-
UNDEFINED
public static final PodPhase UNDEFINED
Status unknown
-
-
Method Detail
-
values
public static PodPhase[] 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 (PodPhase c : PodPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PodPhase 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
-
getValue
public String getValue()
-
isActive
public boolean isActive()
-
getIcon
public String getIcon()
-
isWorking
public static boolean isWorking(PodPhase podPhase)
-
-