add mapping for /executions/running

This commit is contained in:
Vincent Behar 2011-07-05 16:06:41 +02:00
parent c8c45a48fc
commit c1bed2d58d

View file

@ -547,6 +547,22 @@ public class RundeckClient implements Serializable {
* Executions
*/
/**
* Get the running executions for the given project
*
* @param project name of the project - mandatory
* @return a {@link List} of {@link RundeckExecution} : might be empty, but won't be null
* @throws RundeckApiException in case of error when calling the API (non-existent project with this name)
* @throws RundeckApiLoginException if the login failed
* @throws IllegalArgumentException if the project is blank (null, empty or whitespace)
*/
public List<RundeckExecution> getRunningExecutions(String project) throws RundeckApiException,
RundeckApiLoginException, IllegalArgumentException {
AssertUtil.notBlank(project, "project is mandatory to trigger an ad-hoc command !");
return new ApiCall(this).get("/executions/running?project=" + project,
new ExecutionsParser("result/executions/execution"));
}
/**
* Get the executions of the given job
*