@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 |
getScriptFromURL(URL logId) |
URL |
getURLfromWorkerLog(String logUrl) |
static void |
main(String[] args) |
String |
publishAlgorithm(String algorithmPackageURL,
String targetVREToken,
String targetVRE,
String category) |
String |
stageAlgorithm(String algorithmPackageURL,
String category) |
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="category") String category) throws IOException, InterruptedException
stageAlgorithm in interface PoolManagerIOExceptionInterruptedException@GET @Path(value="/algorithm/add") @Produces(value="text/plain") public String publishAlgorithm(@QueryParam(value="algorithmPackageURL") String algorithmPackageURL, @QueryParam(value="targetVREToken") String targetVREToken, @QueryParam(value="targetVRE") String targetVRE, @QueryParam(value="category") String category) throws IOException, InterruptedException
publishAlgorithm in interface PoolManagerIOExceptionInterruptedException@GET @Path(value="/log") @Produces(value="text/plain") public String getLogById(@QueryParam(value="logUrl") String logUrl) throws IOException
getLogById in interface PoolManagerIOExceptionpublic Algorithm extractAlgorithm(String url) throws IOException
extractAlgorithm in interface PoolManagerIOExceptionpublic static void main(String[] args) throws IOException, InterruptedException, org.tmatesoft.svn.core.SVNException
IOExceptionInterruptedExceptionorg.tmatesoft.svn.core.SVNExceptionpublic 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 PoolManagerIOExceptionInterruptedExceptionCopyright © 2017. All Rights Reserved.