Search in sources :

Example 1 with GlusterVolumeTaskReturn

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

the class JsonRpcVdsServer method glusterVolumeRemoveBrickStatus.

@Override
public GlusterVolumeTaskReturn glusterVolumeRemoveBrickStatus(String volumeName, String[] bricksList) {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.removeBrickStatus").withParameter("volumeName", volumeName).withParameter("brickList", new ArrayList<>(Arrays.asList(bricksList))).build();
    Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
    return new GlusterVolumeTaskReturn(response);
}
Also used : GlusterVolumeTaskReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeTaskReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) ArrayList(java.util.ArrayList)

Example 2 with GlusterVolumeTaskReturn

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

the class JsonRpcVdsServer method glusterVolumeRebalanceStop.

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

Example 3 with GlusterVolumeTaskReturn

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

the class JsonRpcVdsServer method glusterVolumeRemoveBricksStop.

@Override
public GlusterVolumeTaskReturn glusterVolumeRemoveBricksStop(String volumeName, String[] brickList, int replicaCount) {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.removeBrickStop").withParameter("volumeName", volumeName).withParameter("brickList", new ArrayList<>(Arrays.asList(brickList))).withParameter("replicaCount", replicaCount).build();
    Map<String, Object> response = new FutureMap(this.client, request);
    return new GlusterVolumeTaskReturn(response);
}
Also used : GlusterVolumeTaskReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeTaskReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Example 4 with GlusterVolumeTaskReturn

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

the class JsonRpcVdsServer method glusterVolumeRebalanceStatus.

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

Aggregations

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