2017-11-08 16:12:38 +01:00
|
|
|
package org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration;
|
|
|
|
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.clients.configurations.AbstractConfiguration;
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.clients.configurations.Prod;
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.clients.configurations.Stage;
|
|
|
|
|
|
|
|
public class ConfigurationImpl implements Configuration ***REMOVED***
|
|
|
|
|
|
|
|
enum CONFIGURATIONS ***REMOVED***
|
|
|
|
STAGE (new Stage ()),
|
|
|
|
PROD (new Prod ());
|
|
|
|
|
|
|
|
private AbstractConfiguration type;
|
|
|
|
|
|
|
|
private CONFIGURATIONS(AbstractConfiguration type) ***REMOVED***
|
|
|
|
this.type = type;
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String toString() ***REMOVED***
|
|
|
|
return this.type.getType();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
public AbstractConfiguration getType ()
|
|
|
|
***REMOVED***
|
|
|
|
return this.type;
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
|
2018-07-18 11:21:17 +02:00
|
|
|
***REMOVED*** enum REPOSITORIES ***REMOVED***
|
|
|
|
***REMOVED*** REPO ("svn.repository"),
|
|
|
|
***REMOVED*** MAIN_ALGO ("svn.algo.main.repo");
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** private String type;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED*** private REPOSITORIES(String type) ***REMOVED***
|
|
|
|
***REMOVED*** this.type = type;
|
|
|
|
***REMOVED*** ***REMOVED***
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED******REMOVED***
|
|
|
|
***REMOVED*** public String toString() ***REMOVED***
|
|
|
|
***REMOVED*** return this.type;
|
|
|
|
***REMOVED*** ***REMOVED***
|
|
|
|
***REMOVED******REMOVED***
|
2017-11-08 16:12:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
private CONFIGURATIONS type;
|
|
|
|
private ClientConfigurationCache cache;
|
|
|
|
|
|
|
|
public ConfigurationImpl(CONFIGURATIONS type,ClientConfigurationCache cache) ***REMOVED***
|
|
|
|
this.type = type;
|
|
|
|
this.cache = cache;
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getHost() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getHost ();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNAlgorithmsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getAlgorithmsList();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getRepository() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getSoftwareRepo();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNLinuxCompiledDepsList()
|
|
|
|
***REMOVED***
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsLinuxCompiled();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNPreInstalledDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsPreInstalled();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNRBDepsList()
|
|
|
|
***REMOVED***
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsRBlackbox();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNCRANDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsR();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNJavaDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsJava();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNKWDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsKnimeWorkflow();
|
|
|
|
***REMOVED***
|
2019-12-11 14:30:47 +01:00
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNKW4_1DepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsKnimeWorkflow4_1();
|
|
|
|
***REMOVED***
|
2017-11-08 16:12:38 +01:00
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNOctaveDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsOctave();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNPythonDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsPython();
|
|
|
|
***REMOVED***
|
|
|
|
|
2018-10-26 10:46:20 +02:00
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getSVNPython3_6DepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsPython3_6();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
|
2017-11-08 16:12:38 +01:00
|
|
|
***REMOVED***
|
|
|
|
public String getSVNWCDepsList() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getDepsWindowsCompiled();
|
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
***REMOVED***
|
2018-07-18 11:21:17 +02:00
|
|
|
public SVNRepository getSVNRepository()
|
2017-11-08 16:12:38 +01:00
|
|
|
***REMOVED***
|
2018-07-18 11:21:17 +02:00
|
|
|
return this.cache.getSVNRepository();
|
2017-11-08 16:12:38 +01:00
|
|
|
***REMOVED***
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
***REMOVED***
|
|
|
|
public String getGhostAlgoDirectory() ***REMOVED***
|
|
|
|
|
|
|
|
return this.cache.getConfiguration(this.type).getGhostRepo();
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED***
|