Search in sources :

Example 1 with HostJobsReturn

use of org.ovirt.engine.core.vdsbroker.vdsbroker.HostJobsReturn in project ovirt-engine by oVirt.

the class JsonRpcVdsServer method getHostJobs.

@Override
public HostJobsReturn getHostJobs(String jobType, List<String> jobIds) {
    JsonRpcRequest request = new RequestBuilder("Host.getJobs").withOptionalParameter("job_type", jobType).withOptionalParameterAsList("job_ids", jobIds).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("jobs");
    return new HostJobsReturn(response);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) HostJobsReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.HostJobsReturn)

Aggregations

HostJobsReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.HostJobsReturn)1 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)1 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)1