Search in sources :

Example 1 with GetVmsInfoReturn

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

the class JsonRpcIIrsServer method getVmsInfo.

@Override
public GetVmsInfoReturn getVmsInfo(String storagePoolId, String storageDomainId, String[] VMIDList) {
    JsonRpcRequest request = new RequestBuilder("StoragePool.getBackedUpVmsInfo").withParameter("storagepoolID", storagePoolId).withParameter("storagedomainID", storageDomainId).withParameter("vmList", new ArrayList<>(Arrays.asList(VMIDList))).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("vmlist");
    return new GetVmsInfoReturn(response);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) GetVmsInfoReturn(org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoReturn) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 GetVmsInfoReturn (org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoReturn)1 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)1 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)1