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);
}
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);
}
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);
}
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);
}
Aggregations