use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method cleanStorageDomainMetaData.
@Override
public StatusOnlyReturn cleanStorageDomainMetaData(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.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method spmStatus.
@Override
public SpmStatusReturn spmStatus(String spUUID) {
JsonRpcRequest request = new RequestBuilder("StoragePool.getSpmStatus").withParameter("storagepoolID", spUUID).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("spm_st");
return new SpmStatusReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method sealDisks.
@Override
public StatusOnlyReturn sealDisks(String templateId, String jobId, String storagePoolId, List<Map<String, Object>> images) {
JsonRpcRequest request = new RequestBuilder("VM.seal").withParameter("vmID", templateId).withParameter("job_id", jobId).withParameter("sp_id", storagePoolId).withOptionalParameterAsList("images", images).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 JsonRpcVdsServer method glusterHostUUIDGet.
@Override
public OneUuidReturn glusterHostUUIDGet() {
JsonRpcRequest request = new RequestBuilder("GlusterHost.uuid").build();
Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
return new OneUuidReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method getExternalVmFromOva.
@Override
public OneVmReturn getExternalVmFromOva(String ovaPath) {
JsonRpcRequest request = new RequestBuilder("Host.getExternalVmFromOva").withParameter("ova_path", ovaPath).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("vmList").withResponseType(Object[].class);
return new OneVmReturn(response);
}
Aggregations