com.atlassian.bamboo
Class ServerLifecycleManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.ServerLifecycleManagerImpl
All Implemented Interfaces:
ServerLifecycleManager

public class ServerLifecycleManagerImpl
extends Object
implements ServerLifecycleManager


Constructor Summary
ServerLifecycleManagerImpl(PlanExecutionLockService planExecutionLockService, ChainExecutionManager chainExecutionManager, BambooAuthenticationContext bambooAuthenticationContext, AuditLogService auditLogService, MessageListenerContainerController messageListenerContainerController, ChangeDetectionController changeDetectionController, IndexerManager indexerManager, org.quartz.Scheduler scheduler, ElasticInstanceManager elasticInstanceManager, AwsAccountBean awsAccountBean, BambooPluginManager bambooPluginManager, ElasticAccountBean elasticAccountBean)
           
 
Method Summary
 ServerLifecycleState getServerLifecycleState()
           
 ServerLifecycleState pauseServer()
          Puts the server into the ServerLifecycleState.PAUSING state
 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
 void startQueueWatcher()
           
 void stopQueueWatcher()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLifecycleManagerImpl

public ServerLifecycleManagerImpl(PlanExecutionLockService planExecutionLockService,
                                  ChainExecutionManager chainExecutionManager,
                                  BambooAuthenticationContext bambooAuthenticationContext,
                                  AuditLogService auditLogService,
                                  MessageListenerContainerController messageListenerContainerController,
                                  ChangeDetectionController changeDetectionController,
                                  IndexerManager indexerManager,
                                  org.quartz.Scheduler scheduler,
                                  ElasticInstanceManager elasticInstanceManager,
                                  AwsAccountBean awsAccountBean,
                                  BambooPluginManager bambooPluginManager,
                                  ElasticAccountBean elasticAccountBean)
Method Detail

serverStarting

public void serverStarting()
Description copied from interface: ServerLifecycleManager
Puts the server into the ServerLifecycleState.STARTING state

Specified by:
serverStarting in interface ServerLifecycleManager

serverRunning

public void serverRunning()
Description copied from interface: ServerLifecycleManager
Puts the server into the ServerLifecycleState.RUNNING state

Specified by:
serverRunning in interface ServerLifecycleManager

pauseServer

@NotNull
public ServerLifecycleState pauseServer()
Description copied from interface: ServerLifecycleManager
Puts the server into the ServerLifecycleState.PAUSING state

Specified by:
pauseServer in interface ServerLifecycleManager
Returns:
current ServerLifecycleState

prepareForRestart

@NotNull
public ServerLifecycleState prepareForRestart()
Description copied from interface: ServerLifecycleManager
Puts the server into the ServerLifecycleState.PREPARING_FOR_RESTART state

Specified by:
prepareForRestart in interface ServerLifecycleManager
Returns:
current ServerLifecycleState

resumeServer

@NotNull
public ServerLifecycleState resumeServer()
Description copied from interface: ServerLifecycleManager
Puts the server into the ServerLifecycleState.RUNNING state

Specified by:
resumeServer in interface ServerLifecycleManager
Returns:
current ServerLifecycleState

getServerLifecycleState

@NotNull
public ServerLifecycleState getServerLifecycleState()
Specified by:
getServerLifecycleState in interface ServerLifecycleManager
Returns:
gets the current ServerLifecycleState

startQueueWatcher

public void startQueueWatcher()

stopQueueWatcher

public void stopQueueWatcher()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.