public List<SystemJob> allSystemJobs() throws IOException, APIException {
List<SystemJob> jobs = Lists.newArrayList();
for (Node node : serverNodes.all()) {
GetSystemJobsResponse r = api.path(routes.SystemJobResource().list(), GetSystemJobsResponse.class).node(node).execute();
for (SystemJobSummaryResponse job : r.jobs) {
jobs.add(systemJobFactory.fromSummaryResponse(job));
}
}