com.atlassian.bamboo.plugins.rest.resource
Class ServerResource

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.resource.ServerResource

@Singleton
public class ServerResource
extends java.lang.Object


Constructor Summary
ServerResource(ServerLifecycleManager serverLifecycleManager, BambooAuthenticationContext bambooAuthenticationContext)
           
 
Method Summary
 ServerLifecycleInfo getStatus()
           
 ServerLifecycleInfo pause()
          Pauses the server
 ServerLifecycleInfo resume()
          Resumes the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerResource

public ServerResource(ServerLifecycleManager serverLifecycleManager,
                      BambooAuthenticationContext bambooAuthenticationContext)
Method Detail

getStatus

public ServerLifecycleInfo getStatus()
Returns:
life cycle state of server

pause

public ServerLifecycleInfo pause()
Pauses the server

Returns:
life cycle state of server

resume

public ServerLifecycleInfo resume()
Resumes the server

Returns:
life cycle state of server


Copyright © 2012 Atlassian. All Rights Reserved.