@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
IOException
InterruptedException
@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
IOException
InterruptedException
@GET @Path(value="/log") @Produces(value="text/plain") public String getLogById(@QueryParam(value="logUrl") String logUrl) throws IOException
getLogById
in interface PoolManager
IOException
@GET @Path(value="/monitor") @Produces(value="text/plain") public String getMonitorById(@QueryParam(value="logUrl") String logUrl) throws IOException
IOException
public Algorithm extractAlgorithm(String url) throws IOException
extractAlgorithm
in interface PoolManager
IOException
public static void main(String[] args) throws org.gcube.common.authorization.client.exceptions.ObjectNotFound, Exception
org.gcube.common.authorization.client.exceptions.ObjectNotFound
Exception
public void getLogId(Algorithm algo, String vre)
getLogId
in interface PoolManager
public String getScriptFromURL(URL logId) throws IOException
getScriptFromURL
in interface PoolManager
IOException
public URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException
getURLfromWorkerLog
in interface PoolManager
MalformedURLException
UnknownHostException
public void addAlgToIs(Algorithm algo)
addAlgToIs
in interface PoolManager
public Set<Algorithm> getAlgoFromIs()
getAlgoFromIs
in interface PoolManager
public List<String> updateSVN(String file, List<String> ldep) throws org.tmatesoft.svn.core.SVNException
updateSVN
in interface PoolManager
org.tmatesoft.svn.core.SVNException
public String addAlgorithmToHost(Algorithm algo, String host, boolean test) throws IOException, InterruptedException
addAlgorithmToHost
in interface PoolManager
IOException
InterruptedException
public String addAlgorithmToVRE(Algorithm algo, String vre, boolean test) throws IOException, InterruptedException
addAlgorithmToVRE
in interface PoolManager
IOException
InterruptedException
public String stageAlgorithm(String algorithmPackageURL) throws IOException, InterruptedException
stageAlgorithm
in interface PoolManager
IOException
InterruptedException
public String publishAlgorithm(String algorithmPackageURL, String targetVREToken, String targetVRE) throws IOException, InterruptedException
publishAlgorithm
in interface PoolManager
IOException
InterruptedException
Copyright © 2017. All Rights Reserved.