Compare commits
195 Commits
4a5eb67f73
...
e1d88418be
Author | SHA1 | Date |
---|---|---|
Giancarlo Panichi | e1d88418be | |
Giancarlo Panichi | 033ce0b37b | |
Giancarlo Panichi | 1d630bc331 | |
Giancarlo Panichi | 5e88b6e866 | |
Giancarlo Panichi | c87a11211c | |
Giancarlo Panichi | afc1280f36 | |
Giancarlo Panichi | 8e66c2ed8b | |
Giancarlo Panichi | 4c7436af6f | |
Giancarlo Panichi | e1d9eadca9 | |
Fabio Sinibaldi | ab754dcedd | |
Giancarlo Panichi | 876ef94c53 | |
Giancarlo Panichi | c2ca14e3cd | |
Giancarlo Panichi | e7f927f48b | |
Giancarlo Panichi | 8eddb8075d | |
Giancarlo Panichi | 9cbfddb9d0 | |
Giancarlo Panichi | d102c34653 | |
Giancarlo Panichi | ef5270f5ca | |
Roberto Cirillo | c7404b13f5 | |
Giancarlo Panichi | 37cbddfd3e | |
Giancarlo Panichi | 4225408778 | |
Giancarlo Panichi | 9ea89610b7 | |
Giancarlo Panichi | e1b2f2eb13 | |
Giancarlo Panichi | 75ad9b8376 | |
Giancarlo Panichi | 7e37d4dae6 | |
Giancarlo Panichi | fa6b08bf17 | |
Giancarlo Panichi | a950e2195d | |
Giancarlo Panichi | f32b9b6aad | |
Giancarlo Panichi | b5ef05eece | |
Giancarlo Panichi | cf36996d36 | |
Giancarlo Panichi | 4274b4bf5c | |
Giancarlo Panichi | 61fc9f4982 | |
Giancarlo Panichi | 2b87ad8a46 | |
Giancarlo Panichi | afd2f5d2fe | |
Giancarlo Panichi | 16e03f0f8e | |
Giancarlo Panichi | 3c358d84a8 | |
Giancarlo Panichi | d7bd865069 | |
Giancarlo Panichi | 375067b908 | |
Giancarlo Panichi | 5937860cf4 | |
Giancarlo Panichi | b5507e05d5 | |
Giancarlo Panichi | 75fd7feaff | |
Giancarlo Panichi | 8aaef980de | |
Giancarlo Panichi | 69315db179 | |
Giancarlo Panichi | a731eab88a | |
Giancarlo Panichi | b0f529c2e4 | |
Giancarlo Panichi | 2ec1163a14 | |
Ciro Formisano | 1f142f1667 | |
Ciro Formisano | 91ffb8e3b7 | |
Ciro Formisano | e8e45abb36 | |
Ciro Formisano | 2556d18215 | |
Ciro Formisano | 929e74f355 | |
Ciro Formisano | 623ff51624 | |
Ciro Formisano | 85b523e2f2 | |
Ciro Formisano | 30081945be | |
Ciro Formisano | 6bb73bd6dc | |
Ciro Formisano | 8a19184ac3 | |
Ciro Formisano | 45edc13078 | |
Ciro Formisano | f61562bcd9 | |
Ciro Formisano | 907306c7d0 | |
Ciro Formisano | 368bdc8f81 | |
Nunzio Andrea Galante | 21c7cbe08d | |
Nunzio Andrea Galante | 53fab326e8 | |
Nunzio Andrea Galante | 46b04ae736 | |
Nunzio Andrea Galante | 248e729e88 | |
Nunzio Andrea Galante | 33cc44b6f6 | |
Nunzio Andrea Galante | 7fe54ebddb | |
Nunzio Andrea Galante | 4aebbd8d3a | |
Nunzio Andrea Galante | bf370e511a | |
Nunzio Andrea Galante | f29472ed3e | |
Nunzio Andrea Galante | 864ef5ae03 | |
Nunzio Andrea Galante | e10bdc5525 | |
Nunzio Andrea Galante | 6d1ea69fb3 | |
Nunzio Andrea Galante | a951066ac8 | |
Nunzio Andrea Galante | 17c944b4de | |
Nunzio Andrea Galante | 0240c67d74 | |
Nunzio Andrea Galante | 2c06d9bee8 | |
Nunzio Andrea Galante | b1b51eb9b0 | |
Nunzio Andrea Galante | bf15cee6bc | |
Nunzio Andrea Galante | 2c4ee18a2b | |
Nunzio Andrea Galante | d2f5e9d963 | |
Nunzio Andrea Galante | 7273b86fdd | |
Nunzio Andrea Galante | 901d2b575f | |
Nunzio Andrea Galante | 7e2d6406ca | |
Nunzio Andrea Galante | aeffd73653 | |
Nunzio Andrea Galante | e1fe514aea | |
Nunzio Andrea Galante | d3a42863bf | |
Nunzio Andrea Galante | 60e22e39f6 | |
Nunzio Andrea Galante | bb2c5af9ee | |
Nunzio Andrea Galante | 2bbfe69d3b | |
Nunzio Andrea Galante | 85c51c1f9a | |
Nunzio Andrea Galante | 83fcaf3808 | |
Nunzio Andrea Galante | 389446757f | |
Nunzio Andrea Galante | 7890e99f5b | |
Nunzio Andrea Galante | 9f7778b5ce | |
Nunzio Andrea Galante | 78773efdef | |
Nunzio Andrea Galante | 02587bf725 | |
Nunzio Andrea Galante | 0d82f32a3b | |
Nunzio Andrea Galante | 8d9365b99d | |
Nunzio Andrea Galante | b44644bf37 | |
Nunzio Andrea Galante | 0785091c08 | |
Nunzio Andrea Galante | 9e15d89db4 | |
Nunzio Andrea Galante | a74a4ab0f5 | |
Nunzio Andrea Galante | 3a91c9d653 | |
Nunzio Andrea Galante | c47a84db55 | |
Nunzio Andrea Galante | 1be681a9bd | |
Nunzio Andrea Galante | 3b7f4aefc4 | |
Nunzio Andrea Galante | 9247b7019d | |
Nunzio Andrea Galante | b8b07462ec | |
Nunzio Andrea Galante | 26f7f2d811 | |
Nunzio Andrea Galante | 2c7aebf178 | |
Nunzio Andrea Galante | 62088fcd1d | |
Nunzio Andrea Galante | d07cf6c2b4 | |
Nunzio Andrea Galante | 994f1abad5 | |
Gabriele Giammatteo | cd23218da4 | |
Gabriele Giammatteo | 04c9b93715 | |
Nunzio Andrea Galante | 8a5693f6b2 | |
Nunzio Andrea Galante | a39309903d | |
Nunzio Andrea Galante | c09cc4848f | |
Nunzio Andrea Galante | 79e801c2ec | |
Nunzio Andrea Galante | c8ce04c364 | |
Nunzio Andrea Galante | a67049f2a3 | |
Nunzio Andrea Galante | 952ad76b9f | |
Nunzio Andrea Galante | 487abf77d8 | |
Nunzio Andrea Galante | 22b988b10c | |
Nunzio Andrea Galante | 49e78c3d51 | |
Nunzio Andrea Galante | c919d6b0d0 | |
Nunzio Andrea Galante | 5d6fe0ceb5 | |
Nunzio Andrea Galante | 4fd65602d7 | |
Nunzio Andrea Galante | a325272b18 | |
Gabriele Giammatteo | e136299fb9 | |
Gabriele Giammatteo | 63a918f442 | |
Gabriele Giammatteo | ec7d888eb1 | |
Gabriele Giammatteo | dc2061ead6 | |
Nunzio Andrea Galante | 3d6a1273ff | |
Nunzio Andrea Galante | 7d286d5326 | |
Nunzio Andrea Galante | c8e9329164 | |
Nunzio Andrea Galante | 34b1d254a4 | |
Nunzio Andrea Galante | 830080e1ea | |
Nunzio Andrea Galante | f3dd230754 | |
Nunzio Andrea Galante | 277fcb876d | |
Nunzio Andrea Galante | 90bf5de9c2 | |
Nunzio Andrea Galante | d8105b3911 | |
Nunzio Andrea Galante | 4a09c7bc7c | |
Nunzio Andrea Galante | f0480731ac | |
Nunzio Andrea Galante | 6741085c75 | |
Nunzio Andrea Galante | 871d3af41d | |
Nunzio Andrea Galante | 101d28faa2 | |
Nunzio Andrea Galante | eeefe26566 | |
Nunzio Andrea Galante | 8238deb146 | |
Nunzio Andrea Galante | f25ac50a25 | |
Nunzio Andrea Galante | e95962bf38 | |
Nunzio Andrea Galante | 52844f2bf9 | |
Nunzio Andrea Galante | c736b2f0d3 | |
Nunzio Andrea Galante | b36c9d6238 | |
Nunzio Andrea Galante | 442b71c645 | |
Nunzio Andrea Galante | 5018f51090 | |
Nunzio Andrea Galante | e57b57e59c | |
Nunzio Andrea Galante | 64a7d37a20 | |
Nunzio Andrea Galante | 2e168fc082 | |
Nunzio Andrea Galante | f07c1ad63a | |
Nunzio Andrea Galante | ac0ae80a9e | |
Nunzio Andrea Galante | 79029a4bbf | |
Nunzio Andrea Galante | cc8f3c6074 | |
Nunzio Andrea Galante | 0868d2afd6 | |
Nunzio Andrea Galante | 5ec9bcc53e | |
Nunzio Andrea Galante | acb613bb1e | |
Nunzio Andrea Galante | 7480cc512a | |
Nunzio Andrea Galante | c40cec3733 | |
Nunzio Andrea Galante | 37bdea6c3e | |
Nunzio Andrea Galante | 9af9433b71 | |
Nunzio Andrea Galante | 29b4ffd4b6 | |
Nunzio Andrea Galante | 73ce6a00c5 | |
Nunzio Andrea Galante | 31a64d5d4d | |
Nunzio Andrea Galante | e6092b7216 | |
Nunzio Andrea Galante | 87218738ec | |
Nunzio Andrea Galante | d699f64c51 | |
Nunzio Andrea Galante | 1096917cbd | |
Nunzio Andrea Galante | 4b9e209787 | |
Nunzio Andrea Galante | 297d028977 | |
Nunzio Andrea Galante | d1682a5ef2 | |
Nunzio Andrea Galante | 3c1a16c919 | |
Nunzio Andrea Galante | bab093ce03 | |
Paolo Fabriani | 727756fffa | |
Paolo Fabriani | 3edeeac4fa | |
Paolo Fabriani | 1b6cea2db3 | |
Paolo Fabriani | 8122447dd7 | |
Paolo Fabriani | 22c42fd6f3 | |
Paolo Fabriani | c65952f4ee | |
Paolo Fabriani | 2189ab14b4 | |
Paolo Fabriani | 21313f0e53 | |
Paolo Fabriani | 58a8ad19cf | |
Paolo Fabriani | f6e6e57aa7 | |
Paolo Fabriani | d0ededbb40 | |
Paolo Fabriani | fcc8219f72 | |
Paolo Fabriani | b2df99beb2 | |
Paolo Fabriani | c5ff4e906d |
|
@ -1,7 +1,7 @@
|
|||
# Changelog
|
||||
|
||||
|
||||
## [v2.7.2-SNAPSHOT]
|
||||
## [v2.8.0-SNAPSHOT]
|
||||
|
||||
- Updated to gcube-smartgears-bom.2.5.0
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.dataanalysis.dataminer-pool-manager.2-7-2" date="2023-11-09">
|
||||
<Changeset component="org.gcube.dataanalysis.dataminer-pool-manager.2-8-0" date="2023-11-09">
|
||||
<Change>Updated to gcube-smartgears-bom.2.5.0</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.dataanalysis.dataminer-pool-manager.2-7-1" date="2022-04-06">
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
|||
<groupId>org.gcube.dataanalysis</groupId>
|
||||
<artifactId>dataminer-pool-manager</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>2.7.2-SNAPSHOT</version>
|
||||
<version>2.8.0-SNAPSHOT</version>
|
||||
|
||||
<name>dataminer-pool-manager</name>
|
||||
<description>DataMiner Pool Manager is a service to support the integration of algorithms in D4Science Infrastructure</description>
|
||||
|
|
|
@ -20,6 +20,9 @@ import au.com.bytecode.opencsv.CSVReader;
|
|||
|
||||
public class HAProxy {
|
||||
|
||||
private static final String token1 = "";
|
||||
private static final String token2 = "";
|
||||
|
||||
private Logger logger;
|
||||
|
||||
private CSVReader reader;
|
||||
|
@ -142,16 +145,16 @@ public class HAProxy {
|
|||
HAProxy a = new HAProxy();
|
||||
//ScopeProvider.instance.set("/gcube/devNext/NextNext");
|
||||
//ScopeProvider.instance.set("/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab");
|
||||
SecurityTokenProvider.instance.set("");
|
||||
SecurityTokenProvider.instance.set(token1);
|
||||
|
||||
CheckPermission test = new CheckPermission();
|
||||
CheckPermission.apply("", "/gcube/devNext/NextNext");
|
||||
CheckPermission.apply(token2, "/gcube/devNext/NextNext");
|
||||
|
||||
|
||||
//ScopeProvider.instance.set("/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab");
|
||||
// System.out.println(a.getHProxy());
|
||||
// System.out.println(a.MapCluster());
|
||||
//System.out.println(a.listDataMinersByCluster("","/gcube/devNext/NextNext"));
|
||||
//System.out.println(a.listDataMinersByCluster("xxx-xxx-xxx-xxx","/gcube/devNext/NextNext"));
|
||||
// System.out.println(a.listDataMinersByCluster());
|
||||
|
||||
// List<Dependency> list = new LinkedList<Dependency>();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.gcube.dataanalysis.dataminer.poolmanager.rest;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
|
@ -24,52 +23,44 @@ import org.slf4j.LoggerFactory;
|
|||
import org.tmatesoft.svn.core.SVNException;
|
||||
|
||||
@Path("/")
|
||||
public class RestPoolManager implements PoolManager
|
||||
{
|
||||
//@Context ServletContext context;
|
||||
public class RestPoolManager implements PoolManager {
|
||||
// @Context ServletContext context;
|
||||
|
||||
private final Logger logger;
|
||||
private DataminerPoolManager service;
|
||||
|
||||
//@Context
|
||||
//private ApplicationContext context = ContextProvider.get();
|
||||
|
||||
public RestPoolManager()
|
||||
{
|
||||
|
||||
// @Context
|
||||
// private ApplicationContext context = ContextProvider.get();
|
||||
|
||||
public RestPoolManager() {
|
||||
this.logger = LoggerFactory.getLogger(RestPoolManager.class);
|
||||
this.service = new DataminerPoolManager();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@GET
|
||||
@Path("/algorithm/stage")
|
||||
@Produces("text/plain")
|
||||
public String stageAlgorithm(
|
||||
@QueryParam("algorithmPackageURL") String algorithmPackageURL,
|
||||
@QueryParam("targetVRE") String targetVRE,
|
||||
@QueryParam("category") String category,
|
||||
public String stageAlgorithm(@QueryParam("algorithmPackageURL") String algorithmPackageURL,
|
||||
@QueryParam("targetVRE") String targetVRE, @QueryParam("category") String category,
|
||||
@QueryParam("algorithm_type") String algorithm_type) throws IOException, InterruptedException {
|
||||
this.logger.debug("Stage algorithm method called");
|
||||
Algorithm algo = AlgorithmBuilder.create(algorithmPackageURL);
|
||||
//String env = context.application().getInitParameter("Environment");
|
||||
return this.service.stageAlgorithm(algo,targetVRE,category,algorithm_type/*,env*/);
|
||||
Algorithm algo = AlgorithmBuilder.create(algorithmPackageURL);
|
||||
// String env = context.application().getInitParameter("Environment");
|
||||
return this.service.stageAlgorithm(algo, targetVRE, category, algorithm_type/* ,env */);
|
||||
}
|
||||
|
||||
|
||||
@GET
|
||||
@Path("/algorithm/add")
|
||||
@Produces("text/plain")
|
||||
public String publishAlgorithm(
|
||||
@QueryParam("algorithmPackageURL") String algorithmPackageURL,
|
||||
//@QueryParam("targetVREToken") String targetVREToken,
|
||||
@QueryParam("targetVRE") String targetVRE,
|
||||
@QueryParam("category") String category,
|
||||
public String publishAlgorithm(@QueryParam("algorithmPackageURL") String algorithmPackageURL,
|
||||
// @QueryParam("targetVREToken") String targetVREToken,
|
||||
@QueryParam("targetVRE") String targetVRE, @QueryParam("category") String category,
|
||||
@QueryParam("algorithm_type") String algorithm_type) throws IOException, InterruptedException {
|
||||
this.logger.debug("Publish algorithm method called");
|
||||
Algorithm algo = AlgorithmBuilder.create(algorithmPackageURL);
|
||||
//String env = context.application().getInitParameter("Environment");
|
||||
return this.service.publishAlgorithm(algo, /*targetVREToken,*/ targetVRE,category,algorithm_type/*,env*/);
|
||||
// String env = context.application().getInitParameter("Environment");
|
||||
return this.service.publishAlgorithm(algo, /* targetVREToken, */ targetVRE, category, algorithm_type/* ,env */);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -87,7 +78,6 @@ public class RestPoolManager implements PoolManager
|
|||
return service.getLogById(logUrl);
|
||||
}
|
||||
|
||||
|
||||
@GET
|
||||
@Path("/monitor")
|
||||
@Produces("text/plain")
|
||||
|
@ -97,72 +87,77 @@ public class RestPoolManager implements PoolManager
|
|||
this.logger.debug("Returning Log =" + logUrl);
|
||||
return service.getMonitorById(logUrl);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@Override
|
||||
public Algorithm extractAlgorithm(String url) throws IOException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws ObjectNotFound, Exception {
|
||||
|
||||
|
||||
|
||||
// System.out.println(System.getProperty("user.home")+File.separator+"/gcube/dataminer-pool-manager");
|
||||
// // ProxySelector.setDefault(new
|
||||
// // PropertiesBasedProxySelector("/home/ngalante/.proxy-settings"));
|
||||
//
|
||||
// ScopeProvider.instance.set("/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab");
|
||||
// SecurityTokenProvider.instance.set("xxxx-xxx-xxx-xxx");
|
||||
|
||||
|
||||
ScopeProvider.instance.set("/gcube/devNext");
|
||||
SecurityTokenProvider.instance.set("xxx-xxx-xxx-xxx");
|
||||
|
||||
|
||||
|
||||
// AuthorizationEntry entry = authorizationService().get("xxx-xxx-xxx-xxx");
|
||||
SecurityTokenProvider.instance.set("");
|
||||
|
||||
// AuthorizationEntry entry = authorizationService().get("xxxx-xxx-xxxxx-xxxx");
|
||||
// System.out.println(entry.getContext());
|
||||
|
||||
|
||||
RestPoolManager a = new RestPoolManager();
|
||||
|
||||
|
||||
a.stageAlgorithm("http://data-d.d4science.org/TSt3cUpDTG1teUJMemxpcXplVXYzV1lBelVHTTdsYjlHbWJQNStIS0N6Yz0");
|
||||
// //a.publishAlgorithm("http://data.d4science.org/MnovRjZIdGV5WlB0WXE5NVNaZnRoRVg0SU8xZWpWQlFHbWJQNStIS0N6Yz0", "xxxx-xxx-xxx-xxx","/gcube/devNext/NextNext");
|
||||
// //a.publishAlgorithm("http://data.d4science.org/MnovRjZIdGV5WlB0WXE5NVNaZnRoRVg0SU8xZWpWQlFHbWJQNStIS0N6Yz0", "xxxx-xxx-xxxx-xxxx","/gcube/devNext/NextNext");
|
||||
// // PoolManager aa = new DataminerPoolManager();
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Production Testing
|
||||
|
||||
// Production Testing
|
||||
/*
|
||||
stageAlgorithm(Rproto caller token,pacchetto, category)
|
||||
http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/algorithm/stage?gcube-token=xxx-xxx-xxx-xxx&algorithmPackageURL=http://data.d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0&category=ICHTHYOP_MODEL
|
||||
|
||||
publishAlgorithm(Rproto caller token, pacchetto, category, target token, target prod vre)
|
||||
node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/algorithm/add?gcube-token=xxx-xxx-xxx-xxx&algorithmPackageURL=http://data.d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0&category=ICHTHYOP_MODEL&targetVREToken=xxxx-xxx-xxx-xxx&targetVRE=/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab
|
||||
|
||||
getLogById(Rproto caller token, logid)
|
||||
http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/log?gcube-token=xxxx-xxxx-xxx-xxx&logUrl=
|
||||
*/
|
||||
|
||||
|
||||
//dev Testing
|
||||
* stageAlgorithm(Rproto caller token,pacchetto, category)
|
||||
* http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/
|
||||
* rest/algorithm/stage?gcube-token=xxx-xxx-xxx-xxx&algorithmPackageURL=http://
|
||||
* data.d4science.org/
|
||||
* dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0&category=
|
||||
* ICHTHYOP_MODEL
|
||||
*
|
||||
* publishAlgorithm(Rproto caller token, pacchetto, category, target token,
|
||||
* target prod vre)
|
||||
* node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/
|
||||
* algorithm/add?gcube-token=xxxx-xxxx-xxx-xxx&algorithmPackageURL=http://data.
|
||||
* d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0&
|
||||
* category=ICHTHYOP_MODEL&targetVREToken=xxxx-xxxx-xxxx&targetVRE=/d4science.
|
||||
* research-infrastructures.eu/gCubeApps/RPrototypingLab
|
||||
*
|
||||
* getLogById(Rproto caller token, logid)
|
||||
* http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/
|
||||
* rest/log?gcube-token=xxxx-xxx-xxx-xxx&logUrl=
|
||||
*/
|
||||
|
||||
// dev Testing
|
||||
/*
|
||||
stageAlgorithm(dev_caller_vre_token,pacchetto, category)
|
||||
http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/algorithm/stage?gcube-token=xxx-xxxx-xxxx-xxx-xxxx&algorithmPackageURL=http://data.d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0&category=ICHTHYOP_MODEL
|
||||
|
||||
publishAlgorithm(dev_caller_vre_token, pacchetto, category, target token, target prod vre)
|
||||
http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/log?gcube-token=xxx-xxx-xxx-xxx&logUrl=450bb7f9-9e38-4bde-8f4d-f3296f95deba
|
||||
|
||||
getLogById(dev_caller_vre_token, logid)
|
||||
http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/rest/log?gcube-token=xxx-xxx-xxx-xxx&logUrl=426c8e35-a624-4710-b612-c90929c32c27 */
|
||||
|
||||
* stageAlgorithm(dev_caller_vre_token,pacchetto, category)
|
||||
* http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/
|
||||
* rest/algorithm/stage?gcube-token=xxxx-xxxx-xxxx&algorithmPackageURL=http://
|
||||
* data.d4science.org/
|
||||
* dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0&category=
|
||||
* ICHTHYOP_MODEL
|
||||
*
|
||||
* publishAlgorithm(dev_caller_vre_token, pacchetto, category, target token,
|
||||
* target prod vre)
|
||||
* http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/
|
||||
* rest/log?gcube-token=xxxx-xxxx-xxx-xxxx&logUrl=450bb7f9-9e38-4bde-8f4d-
|
||||
* f3296f95deba
|
||||
*
|
||||
* getLogById(dev_caller_vre_token, logid)
|
||||
* http://node2-d-d4s.d4science.org:8080/dataminer-pool-manager-1.0.0-SNAPSHOT/
|
||||
* rest/log?gcube-token=xxx-xxx-xxx-xxx&logUrl=426c8e35-a624-4710-b612-
|
||||
* c90929c32c27
|
||||
*/
|
||||
|
||||
@Override
|
||||
public void getLogId(Algorithm algo, String vre) {
|
||||
|
@ -176,8 +171,6 @@ public class RestPoolManager implements PoolManager
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public URL getURLfromWorkerLog(String logUrl) throws MalformedURLException, UnknownHostException {
|
||||
// TODO Auto-generated method stub
|
||||
|
@ -196,37 +189,31 @@ public class RestPoolManager implements PoolManager
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<String> updateSVN(String file, List<String> ldep) throws SVNException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String addAlgorithmToHost(Algorithm algo, String host, boolean test)
|
||||
public String addAlgorithmToHost(Algorithm algo, String host, boolean test)
|
||||
throws IOException, InterruptedException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String addAlgorithmToVRE(Algorithm algo, String vre, boolean test)
|
||||
throws IOException, InterruptedException {
|
||||
public String addAlgorithmToVRE(Algorithm algo, String vre, boolean test) throws IOException, InterruptedException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String stageAlgorithm(String algorithmPackageURL) throws IOException, InterruptedException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String publishAlgorithm(String algorithmPackageURL, String targetVREToken, String targetVRE)
|
||||
throws IOException, InterruptedException {
|
||||
|
@ -234,12 +221,4 @@ public class RestPoolManager implements PoolManager
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -63,14 +63,13 @@ public class CheckMethodProduction extends CheckMethod{
|
|||
|
||||
|
||||
//System.out.println(a.checkMethod("dataminer-ghost-t.pre.d4science.org",
|
||||
// "xxxx-xxx-xxx-xxx"));
|
||||
|
||||
//System.out.println(a.checkMethod("dataminer-proto-ghost.d4science.org",
|
||||
// "xxx-xxxx-xxx-xxx"));
|
||||
// "xxx-xxxx-xxx-xx"));
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
a.checkMethod("dataminer-ghost-d.dev.d4science.org",
|
||||
a.checkMethod("dataminer-ghost.cloud-dev.d4science.org",
|
||||
"xxx-xxx-xxx-xxx");
|
||||
} catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ public class CheckMethodStaging extends CheckMethod{
|
|||
|
||||
|
||||
//a.copyFromDmToSVN(aa);
|
||||
// if (a.checkMethod("dataminer-ghost-d.dev.d4science.org", "xxxx-xxx-xxx-xxx")){
|
||||
// if (a.checkMethod("dataminer-ghost-d.dev.d4science.org", "xxxx-xxxx-xxx-xxx")){
|
||||
// System.out.println("AAA"); }
|
||||
//
|
||||
// if (a.doesExist("/home/gcube/wps_algorithms/algorithms/WINDOWS_BLACK_BOX_EXAMPLE.jar")){
|
||||
|
@ -63,7 +63,7 @@ public class CheckMethodStaging extends CheckMethod{
|
|||
try
|
||||
{
|
||||
a.checkMethod("dataminer-ghost-d.dev.d4science.org",
|
||||
"xxx-xxx-xxxx-xxx");
|
||||
"xxxx-xxxx-xxxx-xxxx");
|
||||
} catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
|
@ -77,7 +77,8 @@ public class CheckMethodStaging extends CheckMethod{
|
|||
////
|
||||
//ServiceConfiguration bp = new ServiceConfiguration();
|
||||
////
|
||||
//SecurityTokenProvider.instance.set("xxxx-xxx-xxx-xxx");
|
||||
//SecurityTokenProvider.instance.set("xxx-xxx-xxx-xxx");
|
||||
|
||||
////
|
||||
//if (a.checkMethod(bp.getStagingHost(), SecurityTokenProvider.instance.get())&&a.algoExists(aa)); {
|
||||
//System.out.println("ciao");
|
||||
|
|
Loading…
Reference in New Issue