2017-03-03 19:10:02 +01:00
|
|
|
***REMOVED***package org.gcube.dataanalysis.dataminer.poolmanager.rest;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED******REMOVED***
|
|
|
|
***REMOVED***import java.net.MalformedURLException;
|
|
|
|
***REMOVED******REMOVED***
|
|
|
|
***REMOVED***import java.net.UnknownHostException;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED***import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED***public interface PoolManager {
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** String addAlgorithmToVRE(Algorithm algo, String vre) throws IOException, InterruptedException;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** Algorithm extractAlgorithm(String url) throws IOException;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** String getLogById(String logId) throws IOException;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** void getLogId(Algorithm algo, String vre);
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** String getScriptFromURL(URL logId) throws IOException;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED******REMOVED***
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package org.gcube.dataanalysis.dataminer.poolmanager.rest;
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
import java.net.MalformedURLException;
|
|
|
|
***REMOVED***
|
|
|
|
import java.net.UnknownHostException;
|
2017-04-05 17:14:18 +02:00
|
|
|
***REMOVED***
|
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-05-09 17:10:03 +02:00
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.AlgorithmSet;
|
2017-04-05 17:14:18 +02:00
|
|
|
import org.tmatesoft.svn.core.SVNException;
|
2017-03-03 19:10:02 +01:00
|
|
|
|
|
|
|
public interface PoolManager {
|
|
|
|
|
2017-05-09 17:10:03 +02:00
|
|
|
String addAlgorithmToVRE(Algorithm algo, String vre, boolean test ) throws IOException, InterruptedException;
|
|
|
|
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;
|
|
|
|
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-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
|
|
|
|
2017-03-03 19:10:02 +01:00
|
|
|
***REMOVED***
|