use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterVolumeProfileStop.
@Override
public StatusOnlyReturn glusterVolumeProfileStop(String volumeName) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.profileStop").withParameter("volumeName", volumeName).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method abortV2VJob.
@Override
public StatusOnlyReturn abortV2VJob(String jobUUID) {
JsonRpcRequest request = new RequestBuilder("Host.abortV2VJob").withParameter("jobid", jobUUID).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterSnapshotDelete.
@Override
public StatusOnlyReturn glusterSnapshotDelete(String snapshotName) {
JsonRpcRequest request = new RequestBuilder("GlusterSnapshot.delete").withOptionalParameter("snapName", snapshotName).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method migrateCancel.
@Override
public StatusOnlyReturn migrateCancel(String vmId) {
JsonRpcRequest request = new RequestBuilder("VM.migrateCancel").withParameter("vmID", vmId).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterVolumeRemoveBricksCommit.
@Override
public StatusOnlyReturn glusterVolumeRemoveBricksCommit(String volumeName, String[] brickList, int replicaCount) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.removeBrickCommit").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 StatusOnlyReturn(response);
}
Aggregations