com.atlassian.bamboo
Interface ServerLifecycleManager

All Known Implementing Classes:
ServerLifecycleManagerImpl

@Internal
public interface ServerLifecycleManager

Manages the server life cycle Use ServerLifecycleProvider to get current server life cycle

Since:
3.3

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
 

Method Detail

serverStarting

void serverStarting()
Puts the server into the ServerLifecycleState.STARTING state


serverRunning

void serverRunning()
Puts the server into the ServerLifecycleState.RUNNING state


pauseServer

@NotNull
ServerLifecycleState pauseServer()
Puts the server into the ServerLifecycleState.PAUSING state

Returns:
current ServerLifecycleState

resumeServer

@NotNull
ServerLifecycleState resumeServer()
Puts the server into the ServerLifecycleState.RUNNING state

Returns:
current ServerLifecycleState

getServerLifecycleState

@NotNull
ServerLifecycleState getServerLifecycleState()
Returns:
gets the current ServerLifecycleState


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.