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);
}
Aggregations