2023-01-18 17:33:11 +01:00
|
|
|
//package org.gcube.dataanalysis.dataminer.poolmanager.rest;
|
|
|
|
//
|
|
|
|
//import java.io.IOException;
|
|
|
|
//import java.net.MalformedURLException;
|
|
|
|
//import java.net.URL;
|
|
|
|
//import java.net.UnknownHostException;
|
|
|
|
//
|
|
|
|
//import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm;
|
|
|
|
//
|
|
|
|
//public interface PoolManager {
|
|
|
|
//
|
|
|
|
// String addAlgorithmToVRE(Algorithm algo, String vre) throws IOException, InterruptedException;
|
|
|
|
//
|
|
|
|
// Algorithm extractAlgorithm(String url) throws IOException;
|
|
|
|
//
|
|
|
|
// String getLogById(String logId) throws IOException;
|
|
|
|
//
|
|
|
|
// void getLogId(Algorithm algo, String vre);
|
|
|
|
//
|
|
|
|
// String getScriptFromURL(URL logId) throws IOException;
|
|
|
|
//
|
|
|
|
// URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException;
|
|
|
|
//
|
|
|
|
//}
|
2017-03-03 19:10:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package org.gcube.dataanalysis.dataminer.poolmanager.rest;
|
|
|
|
|
2023-01-18 17:33:11 +01:00
|
|
|
import java.io.IOException;
|
2017-03-03 19:10:02 +01:00
|
|
|
import java.net.MalformedURLException;
|
2023-01-18 17:33:11 +01:00
|
|
|
import java.net.URL;
|
2017-03-03 19:10:02 +01:00
|
|
|
import java.net.UnknownHostException;
|
2023-01-18 17:33:11 +01:00
|
|
|
import java.util.List;
|
2017-03-29 16:06:46 +02:00
|
|
|
import java.util.Set;
|
2017-03-03 19:10:02 +01:00
|
|
|
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm;
|
2017-04-05 17:14:18 +02:00
|
|
|
import org.tmatesoft.svn.core.SVNException;
|
2017-03-03 19:10:02 +01:00
|
|
|
|
2017-12-20 12:01:01 +01:00
|
|
|
public interface PoolManager
|
|
|
|
{
|
|
|
|
String addAlgorithmToVRE(Algorithm algo, String vre, boolean test ) throws IOException, InterruptedException;
|
2017-05-09 18:38:15 +02:00
|
|
|
|
2017-12-20 12:01:01 +01:00
|
|
|
String addAlgorithmToHost(Algorithm algo, String host,boolean test) throws IOException, InterruptedException;
|
2017-05-09 18:38:15 +02:00
|
|
|
|
2017-07-05 17:50:42 +02:00
|
|
|
String stageAlgorithm(String algorithmPackageURL) throws IOException, InterruptedException;
|
2017-05-09 18:38:15 +02:00
|
|
|
|
2017-12-20 12:01:01 +01:00
|
|
|
String publishAlgorithm(String algorithmPackageURL, String targetVREToken, String targetVRE) throws IOException, InterruptedException;
|
2017-05-09 18:38:15 +02:00
|
|
|
|
2017-03-03 19:10:02 +01:00
|
|
|
Algorithm extractAlgorithm(String url) throws IOException;
|
|
|
|
|
|
|
|
String getLogById(String logId) throws IOException;
|
|
|
|
|
|
|
|
void getLogId(Algorithm algo, String vre);
|
|
|
|
|
|
|
|
String getScriptFromURL(URL logId) throws IOException;
|
|
|
|
|
2017-03-29 16:06:46 +02:00
|
|
|
URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException;
|
|
|
|
|
|
|
|
void addAlgToIs(Algorithm algo);
|
|
|
|
|
|
|
|
Set<Algorithm> getAlgoFromIs();
|
2017-12-20 12:01:01 +01:00
|
|
|
|
2017-04-06 10:59:46 +02:00
|
|
|
List<String> updateSVN(String file, List<String> ldep) throws SVNException, IOException;
|
2017-03-29 16:06:46 +02:00
|
|
|
|
2017-05-09 17:10:03 +02:00
|
|
|
|
2023-01-18 17:33:11 +01:00
|
|
|
}
|