@Singleton public class ServerResource extends Object
Constructor and Description |
---|
ServerResource(BambooAuthenticationContext bambooAuthenticationContext,
ServerLifecycleManager serverLifecycleManager,
ServerStatusProvider serverStatusProvider) |
Modifier and Type | Method and Description |
---|---|
RestServerStatusInfo |
getStatus() |
RestServerStatusInfo |
pause()
Pauses the server
|
RestServerStatusInfo |
prepareForRestart()
Prepare server for restarting: suspend change detection, stop indexing, stop ec2 instance ordering etc
|
RestServerStatusInfo |
resume()
Resumes the server
|
public ServerResource(BambooAuthenticationContext bambooAuthenticationContext, ServerLifecycleManager serverLifecycleManager, ServerStatusProvider serverStatusProvider)
public RestServerStatusInfo getStatus()
public RestServerStatusInfo pause()
public RestServerStatusInfo prepareForRestart()
public RestServerStatusInfo resume()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.