use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method forcedDetachStorageDomain.
@Override
public StatusOnlyReturn forcedDetachStorageDomain(String sdUUID, String spUUID) {
JsonRpcRequest request = new RequestBuilder("StorageDomain.detach").withParameter("storagedomainID", sdUUID).withParameter("storagepoolID", spUUID).withParameter("force", true).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method getVolumesList.
@Override
public UUIDListReturn getVolumesList(String sdUUID, String spUUID, String imgUUID) {
JsonRpcRequest request = new RequestBuilder("StorageDomain.getVolumes").withParameter("storagedomainID", sdUUID).withParameter("storagepoolID", spUUID).withParameter("imageID", imgUUID).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuidlist").withResponseType(Object[].class);
return new UUIDListReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method syncImageData.
@Override
public OneUuidReturn syncImageData(String spUUID, String srcDomUUID, String imgGUID, String dstDomUUID, String syncType) {
JsonRpcRequest request = new RequestBuilder("Image.syncData").withParameter("imageID", imgGUID).withParameter("storagepoolID", spUUID).withParameter("storagedomainID", srcDomUUID).withParameter("dstSdUUID", dstDomUUID).withParameter("syncType", syncType).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuid");
return new OneUuidReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method activateStorageDomain.
@Override
public StorageStatusReturn activateStorageDomain(String sdUUID, String spUUID) {
JsonRpcRequest request = new RequestBuilder("StorageDomain.activate").withParameter("storagedomainID", sdUUID).withParameter("storagepoolID", spUUID).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("storageStatus").withResponseType(String.class);
return new StorageStatusReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method prepareMerge.
@Override
public OneUuidReturn prepareMerge(String spUUID, Map<String, Object> subchainInfo) {
JsonRpcRequest request = new RequestBuilder("StoragePool.prepareMerge").withParameter("storagepoolID", spUUID).withParameter("subchainInfo", subchainInfo).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("uuid");
return new OneUuidReturn(response);
}
Aggregations