com.atlassian.bamboo.plugins.rest.admin.concurrentbuild
Class ConcurrentBuildResource

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.admin.concurrentbuild.ConcurrentBuildResource

public class ConcurrentBuildResource
extends Object

Manage the REST endpoint for concurrent build settings.

Since:
5.9

Field Summary
static String REST_PATH
           
 
Constructor Summary
ConcurrentBuildResource(RestBuildConcurrencyService restBuildConcurrencyService, com.atlassian.sal.api.ApplicationProperties applicationProperties, RestPermissionCheck restPermissionCheck)
           
 
Method Summary
 RestBuildConcurrency getBuildConcurrency()
          The REST endpoint to retrieve build concurrency settings
 javax.ws.rs.core.Response updateRestBuildConcurrency(RestBuildConcurrency restBuildConcurrency)
          The REST endpoint to update build concurrency settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REST_PATH

public static final String REST_PATH
See Also:
Constant Field Values
Constructor Detail

ConcurrentBuildResource

public ConcurrentBuildResource(RestBuildConcurrencyService restBuildConcurrencyService,
                               com.atlassian.sal.api.ApplicationProperties applicationProperties,
                               RestPermissionCheck restPermissionCheck)
Method Detail

getBuildConcurrency

public RestBuildConcurrency getBuildConcurrency()
The REST endpoint to retrieve build concurrency settings

Returns:
RestBuildConcurrency

updateRestBuildConcurrency

public javax.ws.rs.core.Response updateRestBuildConcurrency(RestBuildConcurrency restBuildConcurrency)
                                                     throws WebValidationException,
                                                            org.quartz.SchedulerException
The REST endpoint to update build concurrency settings.

Parameters:
restBuildConcurrency - Configuration to be updated. Partially update supported.
Returns:
Status of the update operation.
Throws:
WebValidationException - if there's validation errors, which maps into a 400 Bad Request
org.quartz.SchedulerException - if there's a problem with the scheduler.


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.