git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@148704 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2f041c7f9c
commit
639b2e8ab6
|
@ -17,9 +17,9 @@ public class DataminerPoolManager ***REMOVED***
|
|||
|
||||
private SVNUpdater svnUpdater;
|
||||
|
||||
public DataminerPoolManager()***REMOVED***
|
||||
public DataminerPoolManager() ***REMOVED***
|
||||
try ***REMOVED***
|
||||
***REMOVED***TODO: read this from configuration - fatto
|
||||
***REMOVED***TODO: read this from configuration
|
||||
this.svnUpdater = new SVNUpdater(new Props().getSVNrepo());
|
||||
***REMOVED*** catch (SVNException e) ***REMOVED***
|
||||
e.printStackTrace();
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.gcube.dataanalysis.dataminer.poolmanager.util;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
***REMOVED***
|
||||
|
||||
***REMOVED***
|
||||
|
@ -12,7 +13,7 @@ public class ClusterBuilder ***REMOVED***
|
|||
|
||||
|
||||
***REMOVED***1. to complete
|
||||
public static Cluster getStagingDataminerCluster()***REMOVED***
|
||||
public static Cluster getStagingDataminerCluster() throws FileNotFoundException***REMOVED***
|
||||
Cluster cluster = new Cluster();
|
||||
Props p = new Props();
|
||||
Host h = new Host(p.getStagingHost());
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
package org.gcube.dataanalysis.dataminer.poolmanager.util;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
***REMOVED***
|
||||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
public class Props ***REMOVED***
|
||||
|
@ -11,17 +14,25 @@ public class Props ***REMOVED***
|
|||
|
||||
public String getCSVUrl() ***REMOVED***
|
||||
Properties props = new Properties();
|
||||
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
||||
***REMOVED*** loading properites from properties file
|
||||
***REMOVED***read from war
|
||||
***REMOVED***java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
||||
***REMOVED***read from filesystem
|
||||
FileInputStream input;
|
||||
try ***REMOVED***
|
||||
props.load(input);
|
||||
***REMOVED*** catch (IOException e) ***REMOVED***
|
||||
input = new FileInputStream(home+"/dpmConfig/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*** catch (FileNotFoundException e1) ***REMOVED***
|
||||
***REMOVED*** TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
e1.printStackTrace();
|
||||
***REMOVED***
|
||||
|
||||
***REMOVED*** reading proeprty
|
||||
***REMOVED*** reading propeprty
|
||||
String path = props.getProperty("HAPROXY_CSV");
|
||||
return path;
|
||||
|
||||
|
@ -30,17 +41,25 @@ public class Props ***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
|
||||
***REMOVED***read from war
|
||||
***REMOVED***java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
||||
***REMOVED***read from filesystem
|
||||
FileInputStream input;
|
||||
try ***REMOVED***
|
||||
props.load(input);
|
||||
***REMOVED*** catch (IOException e) ***REMOVED***
|
||||
input = new FileInputStream(home+"/dpmConfig/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*** catch (FileNotFoundException e1) ***REMOVED***
|
||||
***REMOVED*** TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
e1.printStackTrace();
|
||||
***REMOVED***
|
||||
|
||||
***REMOVED*** reading proeprty
|
||||
***REMOVED*** reading propeprty
|
||||
String path = props.getProperty("SVN_REPO");
|
||||
return path;
|
||||
|
||||
|
@ -48,28 +67,37 @@ public class Props ***REMOVED***
|
|||
|
||||
|
||||
|
||||
|
||||
public String getStagingHost() ***REMOVED***
|
||||
Properties props = new Properties();
|
||||
java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
||||
***REMOVED*** loading properites from properties file
|
||||
***REMOVED***read from war
|
||||
***REMOVED***java.io.InputStream input = Props.class.getClassLoader().getResourceAsStream("service.properties");
|
||||
|
||||
***REMOVED***read from filesystem
|
||||
FileInputStream input;
|
||||
try ***REMOVED***
|
||||
props.load(input);
|
||||
***REMOVED*** catch (IOException e) ***REMOVED***
|
||||
input = new FileInputStream(home+"/dpmConfig/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*** catch (FileNotFoundException e1) ***REMOVED***
|
||||
***REMOVED*** TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
e1.printStackTrace();
|
||||
***REMOVED***
|
||||
|
||||
***REMOVED*** reading proeprty
|
||||
|
||||
***REMOVED*** reading propeprty
|
||||
String path = props.getProperty("STAGING_HOST");
|
||||
return path;
|
||||
|
||||
***REMOVED***
|
||||
|
||||
public static void main(String[] args) ***REMOVED***
|
||||
***REMOVED***Props a = new Props();
|
||||
public static void main(String[] args) throws FileNotFoundException ***REMOVED***
|
||||
Props a = new Props();
|
||||
System.out.println(new Props().getSVNrepo());
|
||||
***REMOVED***System.out.println(a.getStagingHost());
|
||||
System.out.println(a.getStagingHost());
|
||||
System.out.println(a.getCSVUrl());
|
||||
***REMOVED***
|
||||
***REMOVED***
|
||||
|
|
Loading…
Reference in New Issue