Package com.atlassian.bamboo
Interface ServerLifecycleManager
-
- All Known Implementing Classes:
ServerLifecycleManagerImpl
@Deprecated @Internal public interface ServerLifecycleManager
Deprecated.since 9.5, useClusterAwareLifecycleManager
insteadManages the server life cycle UseServerLifecycleProvider
to get current server life cycle- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull ServerLifecycleState
getServerLifecycleState()
Deprecated.CompletableFuture<ServerLifecycleState>
pauseServer()
Deprecated.Submits pause server request.@NotNull ServerLifecycleState
prepareForRestart()
Deprecated.Puts the server into theServerLifecycleState.PREPARING_FOR_RESTART
state@NotNull ServerLifecycleState
resumeServer()
Deprecated.Puts the server into theServerLifecycleState.RUNNING
statevoid
secondaryRunning()
Deprecated.Puts the server into theServerLifecycleState.RUNNING_AS_SECONDARY
statevoid
serverRunning()
Deprecated.Puts the server into theServerLifecycleState.RUNNING
statevoid
serverStarting()
Deprecated.Puts the server into theServerLifecycleState.STARTING
state
-
-
-
Method Detail
-
serverStarting
void serverStarting()
Deprecated.Puts the server into theServerLifecycleState.STARTING
state
-
serverRunning
void serverRunning()
Deprecated.Puts the server into theServerLifecycleState.RUNNING
state
-
secondaryRunning
void secondaryRunning()
Deprecated.Puts the server into theServerLifecycleState.RUNNING_AS_SECONDARY
state
-
pauseServer
CompletableFuture<ServerLifecycleState> pauseServer()
Deprecated.Submits pause server request.- Returns:
- Future for pause server operation
-
prepareForRestart
@NotNull @NotNull ServerLifecycleState prepareForRestart()
Deprecated.Puts the server into theServerLifecycleState.PREPARING_FOR_RESTART
state- Returns:
- current
ServerLifecycleState
-
resumeServer
@NotNull @NotNull ServerLifecycleState resumeServer()
Deprecated.Puts the server into theServerLifecycleState.RUNNING
state- Returns:
- current
ServerLifecycleState
-
getServerLifecycleState
@NotNull @NotNull ServerLifecycleState getServerLifecycleState()
Deprecated.- Returns:
- gets the current
ServerLifecycleState
-
-