Search in sources :

Example 1 with VolumeListReturn

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

Aggregations

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