Examples of GetSystemJobsResponse


Examples of org.graylog2.restclient.models.api.responses.system.GetSystemJobsResponse

    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));
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.