@Path(value="server") @Produces(value={"application/xml","application/json"}) @Consumes(value={"application/xml","application/json"}) @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)
@GET public RestServerStatusInfo getStatus()
@POST @Path(value="pause") public RestServerStatusInfo pause()
@PUT @Path(value="prepareForRestart") public RestServerStatusInfo prepareForRestart()
@POST @Path(value="resume") public RestServerStatusInfo resume()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.