use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method moveDomainDevice.
@Override
public StatusOnlyReturn moveDomainDevice(String jobId, Map<String, Object> moveParams) {
JsonRpcRequest request = new RequestBuilder("SDM.move_domain_device").withParameter("job_id", jobId).withParameter("move_params", moveParams).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method freeze.
@Override
public StatusOnlyReturn freeze(String vmId) {
JsonRpcRequest request = new RequestBuilder("VM.freeze").withParameter("vmID", vmId).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method formatStorageDomain.
@Override
public StatusOnlyReturn formatStorageDomain(String sdUUID) {
JsonRpcRequest request = new RequestBuilder("StorageDomain.format").withParameter("storagedomainID", sdUUID).withParameter("autoDetach", false).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method dumpxmls.
@Override
public DomainXmlListReturn dumpxmls(List<String> vmIds) {
JsonRpcRequest request = new RequestBuilder("Host.dumpxmls").withOptionalParameterAsList("vmList", vmIds).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("domxmls").withResponseType(Object[].class);
return new DomainXmlListReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method desktopLogin.
@Override
public StatusOnlyReturn desktopLogin(String vmId, String domain, String user, String password) {
JsonRpcRequest request = new RequestBuilder("VM.desktopLogin").withParameter("vmID", vmId).withParameter("domain", domain).withParameter("username", user).withParameter("password", password).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
Aggregations