2016-04-06 18:28:32 +02:00
|
|
|
package org.gcube.portlets.user.dataminermanager.client.rpc;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2018-05-03 16:24:26 +02:00
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.data.OutputData;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.data.TableItemSimple;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.data.computations.ComputationData;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.data.computations.ComputationId;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.parameters.Parameter;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.process.ComputationStatus;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.process.Operator;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.process.OperatorsClassification;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.workspace.DataMinerWorkArea;
|
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.workspace.ItemDescription;
|
2018-06-06 14:29:54 +02:00
|
|
|
import org.gcube.portlets.user.dataminermanager.shared.session.UserInfo;
|
2016-04-06 18:28:32 +02:00
|
|
|
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-12 11:58:15 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-04-06 18:28:32 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface DataMinerPortletServiceAsync {
|
2016-05-04 20:24:07 +02:00
|
|
|
|
2016-04-06 18:28:32 +02:00
|
|
|
public static DataMinerPortletServiceAsync INSTANCE = (DataMinerPortletServiceAsync) GWT
|
|
|
|
.create(DataMinerPortletService.class);
|
|
|
|
|
2016-04-08 20:34:05 +02:00
|
|
|
void hello(AsyncCallback<UserInfo> callback);
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void getOperatorsClassifications(boolean refresh, AsyncCallback<List<OperatorsClassification>> callback);
|
2016-04-08 20:34:05 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void getParameters(Operator operator, AsyncCallback<List<Parameter>> callback);
|
2016-05-04 20:24:07 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void startComputation(Operator op, AsyncCallback<ComputationId> asyncCallback);
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void getComputationStatus(ComputationId computationId, AsyncCallback<ComputationStatus> asyncCallback);
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void resubmit(ItemDescription itemDescription, AsyncCallback<ComputationId> callback);
|
2016-05-04 20:24:07 +02:00
|
|
|
|
2018-06-06 14:29:54 +02:00
|
|
|
void retrieveTableInformation(ItemDescription item, AsyncCallback<TableItemSimple> callback);
|
2016-04-06 18:28:32 +02:00
|
|
|
|
|
|
|
void getDataMinerWorkArea(AsyncCallback<DataMinerWorkArea> asyncCallback);
|
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void getPublicLink(ItemDescription itemDescription, AsyncCallback<String> callback);
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void cancelComputation(ComputationId computationId, AsyncCallback<String> asyncCallback);
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void deleteItem(ItemDescription itemDescription, AsyncCallback<Void> callback);
|
2016-04-26 18:27:28 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void getOutputDataByComputationId(ComputationId computationId, AsyncCallback<OutputData> callback);
|
2016-05-23 17:25:00 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void getComputationData(ItemDescription itemDescription, AsyncCallback<ComputationData> callback);
|
2016-05-04 20:24:07 +02:00
|
|
|
|
2018-05-08 10:56:35 +02:00
|
|
|
void cancelComputation(ItemDescription itemDescription, AsyncCallback<String> asyncCallback);
|
2016-05-23 17:25:00 +02:00
|
|
|
|
2018-10-03 18:38:11 +02:00
|
|
|
void getItemDescription(String itemId, AsyncCallback<ItemDescription> asyncCallback);
|
|
|
|
|
2016-04-06 18:28:32 +02:00
|
|
|
}
|