Search in sources :

Example 1 with DevicesVisibilityMapReturn

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

the class JsonRpcVdsServer method getDevicesVisibility.

@Override
public DevicesVisibilityMapReturn getDevicesVisibility(String[] devicesList) {
    JsonRpcRequest request = new RequestBuilder("Host.getDevicesVisibility").withParameter("guidList", new ArrayList<>(Arrays.asList(devicesList))).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("visible");
    return new DevicesVisibilityMapReturn(response);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) ArrayList(java.util.ArrayList) DevicesVisibilityMapReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.DevicesVisibilityMapReturn)

Aggregations

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