use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterVolumeStop.
@Override
public StatusOnlyReturn glusterVolumeStop(String volumeName, Boolean force) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.stop").withParameter("volumeName", volumeName).withParameter("force", force).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 setNumberOfCpus.
@Override
public StatusOnlyReturn setNumberOfCpus(String vmId, String numberOfCpus) {
JsonRpcRequest request = new RequestBuilder("VM.setNumberOfCpus").withParameter("vmID", vmId).withParameter("numberOfCpus", numberOfCpus).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 glusterVolumeStart.
@Override
public StatusOnlyReturn glusterVolumeStart(String volumeName, Boolean force) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.start").withParameter("volumeName", volumeName).withParameter("force", force).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 addNetwork.
@Override
public StatusOnlyReturn addNetwork(String bridge, String vlan, String bond, String[] nics, Map<String, String> options) {
JsonRpcRequest request = new RequestBuilder("Host.addNetwork").withParameter("bridge", bridge).withOptionalParameter("vlan", vlan).withOptionalParameter("bond", bond).withOptionalParameterAsList("nics", new ArrayList<>(Arrays.asList(nics))).withOptionalParameterAsMap("options", options).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 convertVmFromOva.
@Override
public StatusOnlyReturn convertVmFromOva(String ovaPath, Map<String, Object> vm, String jobUUID) {
JsonRpcRequest request = new RequestBuilder("Host.convertExternalVmFromOva").withParameter("ova_path", ovaPath).withParameter("vminfo", vm).withParameter("jobid", jobUUID).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
Aggregations