Package com.atlassian.bamboo
Enum ServerLifecycleState
- java.lang.Object
-
- java.lang.Enum<ServerLifecycleState>
-
- com.atlassian.bamboo.ServerLifecycleState
-
- All Implemented Interfaces:
Serializable,Comparable<ServerLifecycleState>
@Deprecated @PublicApi public enum ServerLifecycleState extends Enum<ServerLifecycleState>
Deprecated.since 9.5, useNodeLifecycleStateinsteadRepresents the server life cycle- Since:
- 3.3
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PAUSEDDeprecated.The server is paused.PAUSINGDeprecated.The server is transitioning toPAUSED.PREPARING_FOR_RESTARTDeprecated.The server is in transitioning toREADY_FOR_RESTARTstate.READY_FOR_RESTARTDeprecated.The server is paused and ready to be restarted.RUNNINGDeprecated.The server is running as the primary node.RUNNING_AS_SECONDARYDeprecated.The server is running as secondary node.SETUPDeprecated.The system is undergoing setupSTARTINGDeprecated.The server is starting
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @NotNull ServerLifecycleStatefromNodeLifecycleState(NodeLifecycleState nodeLifecycleState)Deprecated.@NotNull NodeLifecycleStategetFallbackToNodeLifecycleState()Deprecated.@Nullable StringgetSetByUser()Deprecated.static ServerLifecycleStatevalueOf(String name)Deprecated.Returns the enum constant of this type with the specified name.static ServerLifecycleState[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SETUP
public static final ServerLifecycleState SETUP
Deprecated.The system is undergoing setup- Since:
- 3.3
-
STARTING
public static final ServerLifecycleState STARTING
Deprecated.The server is starting- Since:
- 3.3
-
RUNNING
public static final ServerLifecycleState RUNNING
Deprecated.The server is running as the primary node.- Since:
- 3.3
-
PAUSING
public static final ServerLifecycleState PAUSING
Deprecated.The server is transitioning toPAUSED. No builds can be queued at this time.- Since:
- 3.3
-
PREPARING_FOR_RESTART
public static final ServerLifecycleState PREPARING_FOR_RESTART
Deprecated.The server is in transitioning toREADY_FOR_RESTARTstate.- Since:
- 5.8
-
READY_FOR_RESTART
public static final ServerLifecycleState READY_FOR_RESTART
Deprecated.The server is paused and ready to be restarted.- Since:
- 5.8
-
PAUSED
public static final ServerLifecycleState PAUSED
Deprecated.The server is paused. No builds are queued or building.- Since:
- 3.3
-
RUNNING_AS_SECONDARY
public static final ServerLifecycleState RUNNING_AS_SECONDARY
Deprecated.The server is running as secondary node.- Since:
- 9.4
-
-
Method Detail
-
values
public static ServerLifecycleState[] values()
Deprecated.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 (ServerLifecycleState c : ServerLifecycleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerLifecycleState valueOf(String name)
Deprecated.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
-
fromNodeLifecycleState
@NotNull public static @NotNull ServerLifecycleState fromNodeLifecycleState(NodeLifecycleState nodeLifecycleState)
Deprecated.
-
getSetByUser
@Nullable public @Nullable String getSetByUser()
Deprecated.- Returns:
- the username that changed the state. Can be null if no user changed the state
-
getFallbackToNodeLifecycleState
@NotNull public @NotNull NodeLifecycleState getFallbackToNodeLifecycleState()
Deprecated.- Returns:
- the
NodeLifecycleStatethat thisServerLifecycleStatefalls back to. - Since:
- 9.5
-
-