Search in sources :

Example 1 with GlusterVolumesListReturn

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

the class JsonRpcVdsServer method glusterVolumesList.

@Override
public GlusterVolumesListReturn glusterVolumesList(Guid clusterId) {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.list").build();
    Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
    return new GlusterVolumesListReturn(clusterId, response);
}
Also used : GlusterVolumesListReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Example 2 with GlusterVolumesListReturn

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

the class JsonRpcVdsServer method glusterVolumeInfo.

@Override
public GlusterVolumesListReturn glusterVolumeInfo(Guid clusterId, String volumeName) {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.list").withParameter("volumeName", volumeName).build();
    Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
    return new GlusterVolumesListReturn(clusterId, response);
}
Also used : GlusterVolumesListReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Aggregations

GlusterVolumesListReturn (org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListReturn)2 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)2 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)2