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, useNodeLifecycleState
insteadRepresents the server life cycle- Since:
- 3.3
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PAUSED
Deprecated.The server is paused.PAUSING
Deprecated.The server is transitioning toPAUSED
.PREPARING_FOR_RESTART
Deprecated.The server is in transitioning toREADY_FOR_RESTART
state.READY_FOR_RESTART
Deprecated.The server is paused and ready to be restarted.RUNNING
Deprecated.The server is running as the primary node.RUNNING_AS_SECONDARY
Deprecated.The server is running as secondary node.SETUP
Deprecated.The system is undergoing setupSTARTING
Deprecated.The server is starting
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @NotNull ServerLifecycleState
fromNodeLifecycleState(NodeLifecycleState nodeLifecycleState)
Deprecated.@NotNull NodeLifecycleState
getFallbackToNodeLifecycleState()
Deprecated.@Nullable String
getSetByUser()
Deprecated.static ServerLifecycleState
valueOf(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_RESTART
state.- 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
NodeLifecycleState
that thisServerLifecycleState
falls back to. - Since:
- 9.5
-
-