refactoring (part 3)
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@148427 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
422bd3598e
commit
86433db2a2
|
@ -38,6 +38,7 @@ public class DataminerPoolManager {
|
|||
|
||||
public DataminerPoolManager(){
|
||||
try {
|
||||
//TODO: read this from configuration
|
||||
this.svnUpdater = new SVNUpdater(
|
||||
"https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/RConfiguration/RPackagesManagement/");
|
||||
} catch (SVNException e) {
|
||||
|
@ -49,10 +50,8 @@ public class DataminerPoolManager {
|
|||
|
||||
public String stageAlgorithm(Algorithm algo) throws IOException, InterruptedException {
|
||||
|
||||
Cluster cluster = new Cluster();
|
||||
Host h = new Host();
|
||||
h.setName(getStagingDataminerHostname());
|
||||
cluster.addHost(h);
|
||||
|
||||
Cluster cluster = getStagingDataminerCluster();
|
||||
|
||||
//Assumes the service is running in RPrototypingLab
|
||||
String token = SecurityTokenProvider.instance.get();
|
||||
|
@ -70,8 +69,13 @@ public class DataminerPoolManager {
|
|||
}
|
||||
|
||||
|
||||
private String getStagingDataminerHostname(){
|
||||
return null;
|
||||
private Cluster getStagingDataminerCluster(){
|
||||
Cluster cluster = new Cluster();
|
||||
Host h = new Host();
|
||||
//TODO: read this from configuration
|
||||
h.setName("test");
|
||||
cluster.addHost(h);
|
||||
return cluster;
|
||||
}
|
||||
|
||||
private void updateSVNDependencies(Algorithm algo, boolean stagingVRE) throws IOException, SVNException {
|
||||
|
|
Loading…
Reference in New Issue