Search in sources :

Example 1 with ImageTicketInformationReturn

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

the class JsonRpcVdsServer method getImageTicket.

@Override
public ImageTicketInformationReturn getImageTicket(String ticketId) {
    JsonRpcRequest request = new RequestBuilder("Host.get_image_ticket").withParameter("uuid", ticketId).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("result");
    return new ImageTicketInformationReturn(response);
}
Also used : ImageTicketInformationReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.ImageTicketInformationReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Aggregations

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