use of org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturn in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method createVolume.
@Override
public OneUuidReturn createVolume(String sdUUID, String spUUID, String imgGUID, String size, int volFormat, int volType, String diskType, String volUUID, String descr, String srcImgGUID, String srcVolUUID, String initialSize) {
JsonRpcRequest request = new RequestBuilder("Volume.create").withParameter("volumeID", volUUID).withParameter("storagepoolID", spUUID).withParameter("storagedomainID", sdUUID).withParameter("imageID", imgGUID).withParameter("size", size).withParameter("volFormat", volFormat).withParameter("preallocate", volType).withParameter("diskType", diskType).withParameter("desc", descr).withParameter("srcImgUUID", srcImgGUID).withParameter("srcVolUUID", srcVolUUID).withOptionalParameter("initialSize", initialSize).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuid");
return new OneUuidReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturn in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method copyImage.
@Override
public OneUuidReturn copyImage(String sdUUID, String spUUID, String vmGUID, String srcImgGUID, String srcVolUUID, String dstImgGUID, String dstVolUUID, String descr, String dstSdUUID, int volType, int volFormat, int preallocate, String postZero, Boolean discard, String force) {
// vmGUID is not needed and can be removed from the interface
JsonRpcRequest request = new RequestBuilder("Volume.copy").withParameter("volumeID", srcVolUUID).withParameter("storagepoolID", spUUID).withParameter("storagedomainID", sdUUID).withParameter("imageID", srcImgGUID).withParameter("dstSdUUID", dstSdUUID).withParameter("dstImgUUID", dstImgGUID).withParameter("dstVolUUID", dstVolUUID).withParameter("desc", descr).withParameter("volType", volType).withParameter("volFormat", volFormat).withParameter("preallocate", preallocate).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.engine.core.vdsbroker.irsbroker.OneUuidReturn in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method downloadImage.
@SuppressWarnings("rawtypes")
@Override
public OneUuidReturn downloadImage(Map methodInfo, String spUUID, String sdUUID, String dstImgGUID, String dstVolUUID) {
JsonRpcRequest request = new RequestBuilder("Image.download").withParameter("methodArgs", methodInfo).withParameter("storagepoolID", spUUID).withParameter("storagedomainID", sdUUID).withParameter("imageID", dstImgGUID).withParameter("volumeID", dstVolUUID).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuid");
return new OneUuidReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturn in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method finalizeMerge.
@Override
public OneUuidReturn finalizeMerge(String spUUID, Map<String, Object> subchainInfo) {
JsonRpcRequest request = new RequestBuilder("StoragePool.finalizeMerge").withParameter("storagepoolID", spUUID).withParameter("subchainInfo", subchainInfo).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuid");
return new OneUuidReturn(response);
}
Aggregations