use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterServersList.
@Override
public GlusterServersListReturn glusterServersList() {
JsonRpcRequest request = new RequestBuilder("GlusterHost.list").build();
Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
return new GlusterServersListReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method list.
@Override
public VMListReturn list() {
JsonRpcRequest request = new RequestBuilder("Host.getVMList").withOptionalParameterAsList("vmList", new ArrayList<>(Arrays.asList(new String[] {}))).withParameter("onlyUUID", false).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("vmList").withResponseType(Object[].class);
return new VMListReturn(response);
}
use of org.ovirt.vdsm.jsonrpc.client.RequestBuilder in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method wipeVolume.
@Override
public StatusOnlyReturn wipeVolume(String sdUUID, String imgUUID, String volUUID) {
JsonRpcRequest request = new RequestBuilder("SDM.wipeVolume").withParameter("storagedomainID", sdUUID).withParameter("imageID", imgUUID).withParameter("volumeID", volUUID).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 setMOMPolicyParameters.
@Override
public StatusOnlyReturn setMOMPolicyParameters(Map<String, Object> values) {
JsonRpcRequest request = new RequestBuilder("Host.setMOMPolicyParameters").withParameter("key_value_store", values).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 setHaMaintenanceMode.
@Override
public StatusOnlyReturn setHaMaintenanceMode(String mode, boolean enabled) {
JsonRpcRequest request = new RequestBuilder("Host.setHaMaintenanceMode").withParameter("mode", mode).withParameter("enabled", enabled).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusOnlyReturn(response);
}
Aggregations