use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterHookUpdate.
@Override
public StatusOnlyReturn glusterHookUpdate(String glusterCommand, String stage, String hookName, String content, String checksum) {
JsonRpcRequest request = new RequestBuilder("GlusterHook.update").withParameter("glusterCmd", glusterCommand).withParameter("hookLevel", stage).withParameter("hookName", hookName).withParameter("hookData", content).withParameter("hookMd5Sum", checksum).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 add_image_ticket.
@Override
public StatusOnlyReturn add_image_ticket(String ticketId, String[] ops, long timeout, long size, String url, String filename) {
HashMap<String, Object> ticketDict = new HashMap<>();
ticketDict.put("uuid", ticketId);
ticketDict.put("timeout", timeout);
ticketDict.put("ops", ops);
ticketDict.put("size", size);
ticketDict.put("url", url);
// filename is null by default, and only specified by the UI
if (filename != null) {
ticketDict.put("filename", filename);
}
JsonRpcRequest request = new RequestBuilder("Host.add_image_ticket").withParameter("ticket", ticketDict).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 glusterWebhookUpdate.
@Override
public StatusOnlyReturn glusterWebhookUpdate(String url, String bearerToken) {
JsonRpcRequest request = new RequestBuilder("GlusterEvent.webhookUpdate").withParameter("url", url).withParameter("bearerToken", bearerToken).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 deleteV2VJob.
@Override
public StatusOnlyReturn deleteV2VJob(String jobUUID) {
JsonRpcRequest request = new RequestBuilder("Host.deleteV2VJob").withParameter("jobid", jobUUID).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 glusterVolumeSnapshotConfigSet.
@Override
public StatusOnlyReturn glusterVolumeSnapshotConfigSet(String volumeName, String configName, String configValue) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.snapshotConfigSet").withParameter("volumeName", volumeName).withParameter("optionName", configName).withParameter("optionValue", configValue).build();
Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
return new StatusOnlyReturn(response);
}
Aggregations