@Path(value="/") public class RestPoolManager extends Object implements PoolManager
| Constructor and Description |
|---|
RestPoolManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
addAlgorithmToHost(Algorithm algo,
String hostname) |
String |
addAlgorithmToHost(String algorithm,
String hostname,
String name,
String description,
String category,
String algorithmType,
String skipJava,
boolean publish,
boolean updateSVN) |
String |
addAlgorithmToVRE(Algorithm algo,
String vre) |
String |
addAlgorithmToVRE(String algorithm,
String name,
String description,
String category,
String algorithmType,
String skipJava,
boolean publish,
boolean updateSVN) |
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) |
List<String> |
updateSVN(String file,
List<String> ldep) |
@GET @Path(value="/scopes/add") @Produces(value="text/plain") public String addAlgorithmToVRE(@QueryParam(value="algorithm") String algorithm, @QueryParam(value="name") String name, @QueryParam(value="description") String description, @QueryParam(value="category") String category, @DefaultValue(value="transducerers") @QueryParam(value="algorithmType") String algorithmType, @DefaultValue(value="N") @QueryParam(value="skipJava") String skipJava, @DefaultValue(value="false") @QueryParam(value="publish") boolean publish, @DefaultValue(value="false") @QueryParam(value="updateSVN") boolean updateSVN) throws IOException, InterruptedException, org.tmatesoft.svn.core.SVNException
IOExceptionInterruptedExceptionorg.tmatesoft.svn.core.SVNException@GET @Path(value="/hosts/add") @Produces(value="text/plain") public String addAlgorithmToHost(@QueryParam(value="algorithm") String algorithm, @QueryParam(value="hostname") String hostname, @QueryParam(value="name") String name, @QueryParam(value="description") String description, @QueryParam(value="category") String category, @DefaultValue(value="transducerers") @QueryParam(value="algorithmType") String algorithmType, @DefaultValue(value="N") @QueryParam(value="skipJava") String skipJava, @DefaultValue(value="false") @QueryParam(value="publish") boolean publish, @DefaultValue(value="false") @QueryParam(value="updateSVN") boolean updateSVN) throws IOException, InterruptedException, org.tmatesoft.svn.core.SVNException
IOExceptionInterruptedExceptionorg.tmatesoft.svn.core.SVNException@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 String addAlgorithmToVRE(Algorithm algo, String vre) throws IOException, InterruptedException
addAlgorithmToVRE in interface PoolManagerIOExceptionInterruptedExceptionpublic String addAlgorithmToHost(Algorithm algo, String hostname) throws IOException, InterruptedException
addAlgorithmToHost in interface PoolManagerIOExceptionInterruptedExceptionpublic 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 PoolManagerCopyright © 2017. All Rights Reserved.