Search in sources :

Example 1 with ImageSizeReturn

use of org.ovirt.engine.core.vdsbroker.vdsbroker.ImageSizeReturn in project ovirt-engine by oVirt.

the class JsonRpcVdsServer method diskSizeExtend.

@Override
public ImageSizeReturn diskSizeExtend(String vmId, Map<String, String> diskParams, String newSize) {
    JsonRpcRequest request = new RequestBuilder("VM.diskSizeExtend").withParameter("vmID", vmId).withParameter("driveSpecs", diskParams).withParameter("newSize", newSize).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("size");
    return new ImageSizeReturn(response);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) ImageSizeReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.ImageSizeReturn)

Aggregations

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