Search in sources :

Example 1 with GlusterVolumeStatusReturn

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

the class JsonRpcVdsServer method glusterVolumeStatus.

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

Aggregations

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