Enum ClusterLifecycleState
- java.lang.Object
-
- java.lang.Enum<ClusterLifecycleState>
-
- com.atlassian.bamboo.cluster.state.ClusterLifecycleState
-
- All Implemented Interfaces:
Serializable
,Comparable<ClusterLifecycleState>
@Internal public enum ClusterLifecycleState extends Enum<ClusterLifecycleState>
Represents the cluster life cycle- Since:
- 9.5
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterLifecycleState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClusterLifecycleState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final ClusterLifecycleState STARTING
The cluster is starting.
-
RUNNING
public static final ClusterLifecycleState RUNNING
The cluster is running.
-
PAUSING
public static final ClusterLifecycleState PAUSING
The cluster is transitioning toPAUSED
. No builds can be queued at this time.
-
PAUSED
public static final ClusterLifecycleState PAUSED
The cluster is paused. No builds are queued or building.
-
UNKNOWN
public static final ClusterLifecycleState UNKNOWN
The cluster state could not be determined; this is not a valid cluster state.
-
-
Method Detail
-
values
public static ClusterLifecycleState[] 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 (ClusterLifecycleState c : ClusterLifecycleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterLifecycleState 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
-
-