use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method setVolumeDescription.
@Override
public StatusOnlyReturn setVolumeDescription(String sdUUID, String spUUID, String imgGUID, String volUUID, String description) {
JsonRpcRequest request = new RequestBuilder("Volume.setDescription").withParameter("volumeID", volUUID).withParameter("storagepoolID", spUUID).withParameter("storagedomainID", sdUUID).withParameter("imageID", imgGUID).withParameter("description", description).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method reconcileVolumeChain.
@Override
public VolumeListReturn reconcileVolumeChain(String spUUID, String sdUUID, String imgGUID, String leafVolUUID) {
JsonRpcRequest request = new RequestBuilder("Image.reconcileVolumeChain").withParameter("storagepoolID", spUUID).withParameter("storagedomainID", sdUUID).withParameter("imageID", imgGUID).withParameter("leafVolID", leafVolUUID).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("volumes").withResponseType(Object[].class);
return new VolumeListReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method updateVMInImportExport.
@SuppressWarnings("rawtypes")
@Override
public StatusOnlyReturn updateVMInImportExport(String spUUID, Map[] vms, String StorageDomainId) {
JsonRpcRequest request = new RequestBuilder("StoragePool.updateVMs").withParameter("storagepoolID", spUUID).withParameter("vmList", new ArrayList<>(Arrays.asList(vms))).withOptionalParameter("storagedomainID", StorageDomainId).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method moveImage.
@Override
public OneUuidReturn moveImage(String spUUID, String srcDomUUID, String dstDomUUID, String imgGUID, String vmGUID, int op, String postZero, Boolean discard, String force) {
JsonRpcRequest request = new RequestBuilder("Image.move").withParameter("imageID", imgGUID).withParameter("storagepoolID", spUUID).withParameter("storagedomainID", srcDomUUID).withParameter("dstSdUUID", dstDomUUID).withParameter("operation", op).withParameter("postZero", postZero).withOptionalParameter("discard", discard).withParameter("force", force).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuid");
return new OneUuidReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method upgradeStoragePool.
@Override
public StatusOnlyReturn upgradeStoragePool(String storagePoolId, String targetVersion) {
JsonRpcRequest request = new RequestBuilder("StoragePool.upgrade").withParameter("storagepoolID", storagePoolId).withParameter("targetDomVersion", targetVersion).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
Aggregations