use of org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterServicesList.
@Override
public GlusterServicesReturn glusterServicesList(Guid serverId, String[] serviceNames) {
JsonRpcRequest request = new RequestBuilder("GlusterService.get").withParameter("serviceNames", new ArrayList<>(Arrays.asList(serviceNames))).build();
Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
return new GlusterServicesReturn(serverId, response);
}
use of org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method glusterServicesAction.
@Override
public GlusterServicesReturn glusterServicesAction(Guid serverId, String[] serviceList, String actionType) {
JsonRpcRequest request = new RequestBuilder("GlusterService.action").withParameter("serviceNames", new ArrayList<>(Arrays.asList(serviceList))).withParameter("action", actionType).build();
Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
return new GlusterServicesReturn(serverId, response);
}
Aggregations