Search in sources :

Example 1 with TaskStatusReturn

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

the class JsonRpcVdsServer method getTaskStatus.

@Override
public TaskStatusReturn getTaskStatus(String taskUUID) {
    JsonRpcRequest request = new RequestBuilder("Task.getStatus").withParameter("taskID", taskUUID).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("taskStatus");
    return new TaskStatusReturn(response);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) TaskStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.TaskStatusReturn)

Aggregations

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