use of org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method thaw.
@Override
public StatusOnlyReturn thaw(String vmId) {
JsonRpcRequest request = new RequestBuilder("VM.thaw").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 migrate.
@Override
public StatusOnlyReturn migrate(Map<String, Object> migrationInfo) {
JsonRpcRequest request = new RequestBuilder("VM.migrate").withParameter("vmID", getVmId(migrationInfo)).withParameter("params", migrationInfo).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 glusterHostAdd.
@Override
public StatusOnlyReturn glusterHostAdd(String hostName) {
JsonRpcRequest request = new RequestBuilder("GlusterHost.add").withParameter("hostName", hostName).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 glusterHookRemove.
@Override
public StatusOnlyReturn glusterHookRemove(String glusterCommand, String stage, String hookName) {
JsonRpcRequest request = new RequestBuilder("GlusterHook.remove").withParameter("glusterCmd", glusterCommand).withParameter("hookLevel", stage).withParameter("hookName", hookName).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 glusterVolumeProfileStart.
@Override
public StatusOnlyReturn glusterVolumeProfileStart(String volumeName) {
JsonRpcRequest request = new RequestBuilder("GlusterVolume.profileStart").withParameter("volumeName", volumeName).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
Aggregations