2017-05-12 17:32:14 +02:00
|
|
|
package org.gcube.dataanalysis.dataminerpoolmanager;
|
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
import java.io.IOException;
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
import org.gcube.common.scope.api.ScopeProvider;
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm;
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.AlgorithmBuilder;
|
2017-05-12 17:32:14 +02:00
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.SVNUpdater;
|
2017-11-29 16:29:01 +01:00
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.impl.SVNUpdaterProduction;
|
2023-01-18 17:56:48 +01:00
|
|
|
import org.tmatesoft.svn.core.SVNException;
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
public class JobTest {
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
public static void main(String[] args) throws SVNException, IOException, InterruptedException{
|
2017-05-12 17:32:14 +02:00
|
|
|
|
|
|
|
ScopeProvider.instance.set("/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab");
|
|
|
|
|
2017-11-29 16:29:01 +01:00
|
|
|
SVNUpdater svnUpdater = new SVNUpdaterProduction();
|
2023-01-18 17:56:48 +01:00
|
|
|
Algorithm algo = AlgorithmBuilder.create("http://data.d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0");
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
//test phase
|
|
|
|
//Cluster stagingCluster = ClusterBuilder.getStagingDataminerCluster();
|
|
|
|
//Cluster rProtoCluster = ClusterBuilder.getRProtoCluster();
|
|
|
|
//DMPMJob job = new StagingJob(svnUpdater, algo, stagingCluster, /*rProtoCluster,*/ ScopeProvider.instance.get());
|
|
|
|
//job.start();
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
//release phase
|
|
|
|
//Cluster prodCluster = ClusterBuilder.getVRECluster(targetVREToken, targetVRE);
|
|
|
|
//DMPMJob job2 = new ProductionPublishingJob(svnUpdater, algo, prodCluster);
|
|
|
|
//job2.start();
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
}
|
2017-05-12 17:32:14 +02:00
|
|
|
|
2023-01-18 17:56:48 +01:00
|
|
|
}
|