com.atlassian.bamboo
Class ServerLifecycleManagerImpl

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

public class ServerLifecycleManagerImpl
extends java.lang.Object
implements ServerLifecycleManager


Constructor Summary
ServerLifecycleManagerImpl(PlanExecutionLockService planExecutionLockService, ChainExecutionManager chainExecutionManager, DeletionService deletionService, BambooAuthenticationContext bambooAuthenticationContext, AuditLogService auditLogService)
           
 
Method Summary
 ServerLifecycleState getServerLifecycleState()
           
 ServerLifecycleState pauseServer()
          Puts the server into the ServerLifecycleState.PAUSING 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,
                                  DeletionService deletionService,
                                  BambooAuthenticationContext bambooAuthenticationContext,
                                  AuditLogService auditLogService)
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

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 © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.