public class ServerLifecycleManagerImpl extends Object implements ServerLifecycleManager
Constructor and Description |
---|
ServerLifecycleManagerImpl(PlanExecutionLockService planExecutionLockService,
BambooAuthenticationContext bambooAuthenticationContext,
AuditLogService auditLogService,
MessageListenerContainerController messageListenerContainerController,
ChangeDetectionController changeDetectionController,
IndexerManager indexerManager,
org.quartz.Scheduler scheduler,
ElasticInstanceManager elasticInstanceManager,
AwsAccountBean awsAccountBean,
BambooPluginManager bambooPluginManager,
ElasticAccountBean elasticAccountBean,
FlushableBuildLoggerManager buildLoggerManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull ServerLifecycleState |
getServerLifecycleState() |
CompletableFuture<ServerLifecycleState> |
pauseServer()
Submits pause server request.
|
@NotNull ServerLifecycleState |
prepareForRestart()
Puts the server into the
ServerLifecycleState.PREPARING_FOR_RESTART state |
@NotNull ServerLifecycleState |
resumeServer()
Puts the server into the
ServerLifecycleState.RUNNING state |
void |
serverRunning()
Puts the server into the
ServerLifecycleState.RUNNING state |
void |
serverStarting()
Puts the server into the
ServerLifecycleState.STARTING state |
public ServerLifecycleManagerImpl(PlanExecutionLockService planExecutionLockService, BambooAuthenticationContext bambooAuthenticationContext, AuditLogService auditLogService, MessageListenerContainerController messageListenerContainerController, ChangeDetectionController changeDetectionController, IndexerManager indexerManager, org.quartz.Scheduler scheduler, ElasticInstanceManager elasticInstanceManager, AwsAccountBean awsAccountBean, BambooPluginManager bambooPluginManager, ElasticAccountBean elasticAccountBean, FlushableBuildLoggerManager buildLoggerManager)
public void serverStarting()
ServerLifecycleManager
ServerLifecycleState.STARTING
stateserverStarting
in interface ServerLifecycleManager
public void serverRunning()
ServerLifecycleManager
ServerLifecycleState.RUNNING
stateserverRunning
in interface ServerLifecycleManager
public CompletableFuture<ServerLifecycleState> pauseServer()
ServerLifecycleManager
pauseServer
in interface ServerLifecycleManager
@NotNull public @NotNull ServerLifecycleState prepareForRestart()
ServerLifecycleManager
ServerLifecycleState.PREPARING_FOR_RESTART
stateprepareForRestart
in interface ServerLifecycleManager
ServerLifecycleState
@NotNull public @NotNull ServerLifecycleState resumeServer()
ServerLifecycleManager
ServerLifecycleState.RUNNING
stateresumeServer
in interface ServerLifecycleManager
ServerLifecycleState
@NotNull public @NotNull ServerLifecycleState getServerLifecycleState()
getServerLifecycleState
in interface ServerLifecycleManager
ServerLifecycleState
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.