git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@148491 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9ef6c5477f
commit
5dbe0f441e
|
@ -39,9 +39,8 @@ public class DataminerPoolManager ***REMOVED***
|
|||
|
||||
public DataminerPoolManager()***REMOVED***
|
||||
try ***REMOVED***
|
||||
***REMOVED***TODO: read this from configuration
|
||||
this.svnUpdater = new SVNUpdater(
|
||||
"https:***REMOVED***svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/RConfiguration/RPackagesManagement/");
|
||||
***REMOVED***TODO: read this from configuration - fatto
|
||||
this.svnUpdater = new SVNUpdater(new Props().getSVNrepo());
|
||||
***REMOVED*** catch (SVNException e) ***REMOVED***
|
||||
e.printStackTrace();
|
||||
***REMOVED***
|
||||
|
@ -62,6 +61,7 @@ public class DataminerPoolManager ***REMOVED***
|
|||
|
||||
***REMOVED***Algorithm algo, String targetVREToken) throws IOException, InterruptedException ***REMOVED***
|
||||
Cluster cluster = new Cluster();
|
||||
SecurityTokenProvider.instance.set(targetVREToken);
|
||||
for (Host h : new HAProxy().listDataMinersByCluster()) ***REMOVED***
|
||||
cluster.addHost(h);
|
||||
***REMOVED***
|
||||
|
|
|
@ -27,6 +27,28 @@ public class Props ***REMOVED***
|
|||
|
||||
***REMOVED***
|
||||
|
||||
|
||||
public String getSVNrepo() ***REMOVED***
|
||||
Properties props = new Properties();
|
||||
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
||||
***REMOVED*** loading properites from properties file
|
||||
try ***REMOVED***
|
||||
props.load(input);
|
||||
***REMOVED*** catch (IOException e) ***REMOVED***
|
||||
***REMOVED*** TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
***REMOVED***
|
||||
|
||||
***REMOVED*** reading proeprty
|
||||
String path = props.getProperty("SVN_REPO");
|
||||
return path;
|
||||
|
||||
***REMOVED***
|
||||
|
||||
|
||||
|
||||
|
||||
public String getStagingHost() ***REMOVED***
|
||||
Properties props = new Properties();
|
||||
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
@ -46,7 +68,8 @@ public class Props ***REMOVED***
|
|||
***REMOVED***
|
||||
|
||||
public static void main(String[] args) ***REMOVED***
|
||||
Props a = new Props();
|
||||
System.out.println(a.getStagingHost());
|
||||
***REMOVED***Props a = new Props();
|
||||
System.out.println(new Props().getSVNrepo());
|
||||
***REMOVED***System.out.println(a.getStagingHost());
|
||||
***REMOVED***
|
||||
***REMOVED***
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#YML node file
|
||||
STAGING_HOST: dataminer1-devnext.d4science.org
|
||||
SVN_REPO: https:***REMOVED***svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/RConfiguration/RPackagesManagement/
|
||||
#HAPROXY_CSV: http:***REMOVED***data.d4science.org/Yk4zSFF6V3JOSytNd3JkRDlnRFpDUUR5TnRJZEw2QjRHbWJQNStIS0N6Yz0
|
||||
|
|
Loading…
Reference in New Issue