Class RestPoolManager
- java.lang.Object
-
- org.gcube.dataanalysis.dataminer.poolmanager.rest.RestPoolManager
-
- All Implemented Interfaces:
PoolManager
@Path("/") public class RestPoolManager extends Object implements PoolManager
-
-
Constructor Summary
Constructors Constructor Description RestPoolManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddAlgorithmToHost(Algorithm algo, String host, boolean test)StringaddAlgorithmToVRE(Algorithm algo, String vre, boolean test)voidaddAlgToIs(Algorithm algo)AlgorithmextractAlgorithm(String url)Set<Algorithm>getAlgoFromIs()StringgetLogById(String logUrl)voidgetLogId(Algorithm algo, String vre)StringgetMonitorById(String logUrl)StringgetScriptFromURL(URL logId)URLgetURLfromWorkerLog(String logUrl)static voidmain(String[] args)StringpublishAlgorithm(String algorithmPackageURL, String targetVREToken, String targetVRE)StringpublishAlgorithm(String algorithmPackageURL, String targetVRE, String category, String algorithm_type)StringstageAlgorithm(String algorithmPackageURL)StringstageAlgorithm(String algorithmPackageURL, String targetVRE, String category, String algorithm_type)List<String>updateSVN(String file, List<String> ldep)
-
-
-
Method Detail
-
stageAlgorithm
@GET @Path("/algorithm/stage") @Produces("text/plain") public String stageAlgorithm(@QueryParam("algorithmPackageURL") String algorithmPackageURL, @QueryParam("targetVRE") String targetVRE, @QueryParam("category") String category, @QueryParam("algorithm_type") String algorithm_type) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
publishAlgorithm
@GET @Path("/algorithm/add") @Produces("text/plain") public String publishAlgorithm(@QueryParam("algorithmPackageURL") String algorithmPackageURL, @QueryParam("targetVRE") String targetVRE, @QueryParam("category") String category, @QueryParam("algorithm_type") String algorithm_type) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
getLogById
@GET @Path("/log") @Produces("text/plain") public String getLogById(@QueryParam("logUrl") String logUrl) throws IOException- Specified by:
getLogByIdin interfacePoolManager- Throws:
IOException
-
getMonitorById
@GET @Path("/monitor") @Produces("text/plain") public String getMonitorById(@QueryParam("logUrl") String logUrl) throws IOException- Throws:
IOException
-
extractAlgorithm
public Algorithm extractAlgorithm(String url) throws IOException
- Specified by:
extractAlgorithmin interfacePoolManager- Throws:
IOException
-
main
public static void main(String[] args) throws org.gcube.common.authorization.client.exceptions.ObjectNotFound, Exception
- Throws:
org.gcube.common.authorization.client.exceptions.ObjectNotFoundException
-
getLogId
public void getLogId(Algorithm algo, String vre)
- Specified by:
getLogIdin interfacePoolManager
-
getScriptFromURL
public String getScriptFromURL(URL logId) throws IOException
- Specified by:
getScriptFromURLin interfacePoolManager- Throws:
IOException
-
getURLfromWorkerLog
public URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException
- Specified by:
getURLfromWorkerLogin interfacePoolManager- Throws:
MalformedURLExceptionUnknownHostException
-
addAlgToIs
public void addAlgToIs(Algorithm algo)
- Specified by:
addAlgToIsin interfacePoolManager
-
getAlgoFromIs
public Set<Algorithm> getAlgoFromIs()
- Specified by:
getAlgoFromIsin interfacePoolManager
-
updateSVN
public List<String> updateSVN(String file, List<String> ldep) throws org.tmatesoft.svn.core.SVNException
- Specified by:
updateSVNin interfacePoolManager- Throws:
org.tmatesoft.svn.core.SVNException
-
addAlgorithmToHost
public String addAlgorithmToHost(Algorithm algo, String host, boolean test) throws IOException, InterruptedException
- Specified by:
addAlgorithmToHostin interfacePoolManager- Throws:
IOExceptionInterruptedException
-
addAlgorithmToVRE
public String addAlgorithmToVRE(Algorithm algo, String vre, boolean test) throws IOException, InterruptedException
- Specified by:
addAlgorithmToVREin interfacePoolManager- Throws:
IOExceptionInterruptedException
-
stageAlgorithm
public String stageAlgorithm(String algorithmPackageURL) throws IOException, InterruptedException
- Specified by:
stageAlgorithmin interfacePoolManager- Throws:
IOExceptionInterruptedException
-
publishAlgorithm
public String publishAlgorithm(String algorithmPackageURL, String targetVREToken, String targetVRE) throws IOException, InterruptedException
- Specified by:
publishAlgorithmin interfacePoolManager- Throws:
IOExceptionInterruptedException
-
-