Gianpaolo Coro 2014-02-17 16:37:58 +00:00
parent 2a1c5c1005
commit bf4216a2c4
1 changed files with 5 additions and 0 deletions

View File

@ -45,9 +45,14 @@ public class DynamicWPSTransducerer implements DynamicTransducer{
//gets the list of endpoints from the IS
public static List<String> getWPSendpoints(AlgorithmConfiguration config) {
List<String> wps = new ArrayList<String>();
AnalysisLogger.setLogger(config.getConfigPath()+AlgorithmConfiguration.defaultLoggerFile);
// wps.add("http://wps01.i-marine.d4science.org/wps/WebProcessingService");
AnalysisLogger.getLogger().debug("WPS: searching for wps servers in the scope: "+config.getGcubeScope());
wps = org.gcube.dataanalysis.executor.util.IfraRetrieval.retrieveAddresses("WPS", config.getGcubeScope(),"StatisticalManager");
if (wps!=null && wps.size()>0)
AnalysisLogger.getLogger().debug("WPS: found "+wps.size()+" wps instances");
else
AnalysisLogger.getLogger().debug("WPS: found NO wps instances");
return wps;
}