mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-07 13:38:23 +00:00
add method for getting all running executions
This commit is contained in:
parent
76588fe0cb
commit
57115708f2
1 changed files with 15 additions and 0 deletions
|
@ -547,6 +547,21 @@ public class RundeckClient implements Serializable {
|
||||||
* Executions
|
* Executions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all running executions (for all projects)
|
||||||
|
*
|
||||||
|
* @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
|
||||||
|
* @throws RundeckApiLoginException if the login failed
|
||||||
|
*/
|
||||||
|
public List<RundeckExecution> getRunningExecutions() throws RundeckApiException, RundeckApiLoginException {
|
||||||
|
List<RundeckExecution> executions = new ArrayList<RundeckExecution>();
|
||||||
|
for (RundeckProject project : getProjects()) {
|
||||||
|
executions.addAll(getRunningExecutions(project.getName()));
|
||||||
|
}
|
||||||
|
return executions;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the running executions for the given project
|
* Get the running executions for the given project
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue