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 |
---|---|
ServerLifecycleState |
getServerLifecycleState() |
CompletableFuture<ServerLifecycleState> |
pauseServer()
Submits pause server request.
|
ServerLifecycleState |
prepareForRestart()
Puts the server into the
ServerLifecycleState.PREPARING_FOR_RESTART state |
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 ServerLifecycleState prepareForRestart()
ServerLifecycleManager
ServerLifecycleState.PREPARING_FOR_RESTART
stateprepareForRestart
in interface ServerLifecycleManager
ServerLifecycleState
@NotNull public ServerLifecycleState resumeServer()
ServerLifecycleManager
ServerLifecycleState.RUNNING
stateresumeServer
in interface ServerLifecycleManager
ServerLifecycleState
@NotNull public ServerLifecycleState getServerLifecycleState()
getServerLifecycleState
in interface ServerLifecycleManager
ServerLifecycleState
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.