Search in sources :

Example 1 with UUIDListReturn

use of org.ovirt.engine.core.vdsbroker.irsbroker.UUIDListReturn 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);
}
Also used : UUIDListReturn(org.ovirt.engine.core.vdsbroker.irsbroker.UUIDListReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Aggregations

UUIDListReturn (org.ovirt.engine.core.vdsbroker.irsbroker.UUIDListReturn)1 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)1 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)1