Search in sources :

Example 1 with LeaseInfoReturn

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

the class JsonRpcIIrsServer method getVmLeaseInfo.

@Override
public LeaseInfoReturn getVmLeaseInfo(String leaseUUID, String sdUUID) {
    HashMap<String, Object> leaseDict = new HashMap<>();
    leaseDict.put("lease_id", leaseUUID);
    leaseDict.put("sd_id", sdUUID);
    JsonRpcRequest request = new RequestBuilder("Lease.info").withParameter("lease", leaseDict).build();
    Map<String, Object> response = new FutureMap(this.client, request);
    return new LeaseInfoReturn(response);
}
Also used : LeaseInfoReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.LeaseInfoReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 LeaseInfoReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.LeaseInfoReturn)1 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)1 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)1