@Path(value="/") public class RestPoolManager extends Object implements PoolManager
| Constructor and Description |
|---|
RestPoolManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
addAlgorithmToHost(Algorithm algo,
String host,
boolean test) |
String |
addAlgorithmToVRE(Algorithm algo,
String vre,
boolean test) |
void |
addAlgToIs(Algorithm algo) |
Algorithm |
extractAlgorithm(String url) |
Set<Algorithm> |
getAlgoFromIs() |
String |
getLogById(String logUrl) |
void |
getLogId(Algorithm algo,
String vre) |
String |
getMonitorById(String logUrl) |
String |
getScriptFromURL(URL logId) |
URL |
getURLfromWorkerLog(String logUrl) |
static void |
main(String[] args) |
String |
publishAlgorithm(String algorithmPackageURL,
String targetVREToken,
String targetVRE) |
String |
publishAlgorithm(String algorithmPackageURL,
String targetVRE,
String category,
String algorithm_type) |
String |
stageAlgorithm(String algorithmPackageURL) |
String |
stageAlgorithm(String algorithmPackageURL,
String targetVRE,
String category,
String algorithm_type) |
List<String> |
updateSVN(String file,
List<String> ldep) |
@GET @Path(value="/algorithm/stage") @Produces(value="text/plain") public String stageAlgorithm(@QueryParam(value="algorithmPackageURL") String algorithmPackageURL, @QueryParam(value="targetVRE") String targetVRE, @QueryParam(value="category") String category, @QueryParam(value="algorithm_type") String algorithm_type) throws IOException, InterruptedException
IOExceptionInterruptedException@GET @Path(value="/algorithm/add") @Produces(value="text/plain") public String publishAlgorithm(@QueryParam(value="algorithmPackageURL") String algorithmPackageURL, @QueryParam(value="targetVRE") String targetVRE, @QueryParam(value="category") String category, @QueryParam(value="algorithm_type") String algorithm_type) throws IOException, InterruptedException
IOExceptionInterruptedException@GET @Path(value="/log") @Produces(value="text/plain") public String getLogById(@QueryParam(value="logUrl") String logUrl) throws IOException
getLogById in interface PoolManagerIOException@GET @Path(value="/monitor") @Produces(value="text/plain") public String getMonitorById(@QueryParam(value="logUrl") String logUrl) throws IOException
IOExceptionpublic Algorithm extractAlgorithm(String url) throws IOException
extractAlgorithm in interface PoolManagerIOExceptionpublic static void main(String[] args) throws org.gcube.common.authorization.client.exceptions.ObjectNotFound, Exception
org.gcube.common.authorization.client.exceptions.ObjectNotFoundExceptionpublic void getLogId(Algorithm algo, String vre)
getLogId in interface PoolManagerpublic String getScriptFromURL(URL logId) throws IOException
getScriptFromURL in interface PoolManagerIOExceptionpublic URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException
getURLfromWorkerLog in interface PoolManagerMalformedURLExceptionUnknownHostExceptionpublic void addAlgToIs(Algorithm algo)
addAlgToIs in interface PoolManagerpublic Set<Algorithm> getAlgoFromIs()
getAlgoFromIs in interface PoolManagerpublic List<String> updateSVN(String file, List<String> ldep) throws org.tmatesoft.svn.core.SVNException
updateSVN in interface PoolManagerorg.tmatesoft.svn.core.SVNExceptionpublic String addAlgorithmToHost(Algorithm algo, String host, boolean test) throws IOException, InterruptedException
addAlgorithmToHost in interface PoolManagerIOExceptionInterruptedExceptionpublic String addAlgorithmToVRE(Algorithm algo, String vre, boolean test) throws IOException, InterruptedException
addAlgorithmToVRE in interface PoolManagerIOExceptionInterruptedExceptionpublic String stageAlgorithm(String algorithmPackageURL) throws IOException, InterruptedException
stageAlgorithm in interface PoolManagerIOExceptionInterruptedExceptionpublic String publishAlgorithm(String algorithmPackageURL, String targetVREToken, String targetVRE) throws IOException, InterruptedException
publishAlgorithm in interface PoolManagerIOExceptionInterruptedExceptionCopyright © 2017. All Rights Reserved.