use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method amendVolume.
@Override
public StatusOnlyReturn amendVolume(String jobId, Map<String, Object> volInfo, Map<String, Object> qcow2_attr) {
JsonRpcRequest request = new RequestBuilder("SDM.amend_volume").withParameter("job_id", jobId).withParameter("vol_info", volInfo).withParameter("qcow2_attr", qcow2_attr).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method clearTask.
@Override
public StatusOnlyReturn clearTask(String taskUUID) {
JsonRpcRequest request = new RequestBuilder("Task.clear").withParameter("taskID", taskUUID).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method updateVmPolicy.
@SuppressWarnings("rawtypes")
@Override
public StatusOnlyReturn updateVmPolicy(Map params) {
JsonRpcRequest request = new RequestBuilder("VM.updateVmPolicy").withParameter("vmID", (String) params.get("vmId")).withParameter("params", params).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterVolumeResetBrickStart.
@Override
public StatusOnlyReturn glusterVolumeResetBrickStart(String volumeName, String existingBrickDir) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.resetBrickStart").withParameter("volumeName", volumeName).withParameter("existingBrick", existingBrickDir).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterWebhookDelete.
@Override
public StatusOnlyReturn glusterWebhookDelete(String url) {
JsonRpcRequest request = new RequestBuilder("GlusterEvent.webhookDelete").withParameter("url", url).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
Aggregations