2017-05-12 17:32:14 +02:00
|
|
|
package org.gcube.dataanalysis.dataminer.poolmanager.service;
|
|
|
|
|
2017-07-24 12:32:18 +02:00
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
|
2017-11-08 16:12:38 +01:00
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration.DMPMClientConfiguratorManager;
|
2017-05-12 17:32:14 +02:00
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm;
|
|
|
|
***REMOVED***
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.SVNUpdater;
|
2017-11-29 16:29:01 +01:00
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.impl.CheckMethodProduction;
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.impl.NotificationHelperProduction;
|
|
|
|
***REMOVED***
|
|
|
|
***REMOVED***
|
2017-05-12 17:32:14 +02:00
|
|
|
|
|
|
|
public class ProductionPublishingJob extends DMPMJob {
|
|
|
|
|
2017-11-29 16:29:01 +01:00
|
|
|
|
2017-08-29 17:43:31 +02:00
|
|
|
***REMOVED***private String targetVREToken;
|
2017-09-20 18:51:21 +02:00
|
|
|
***REMOVED***private String env;
|
2017-11-29 16:29:01 +01:00
|
|
|
***REMOVED***
|
2017-07-26 21:21:07 +02:00
|
|
|
|
2017-08-29 17:43:31 +02:00
|
|
|
public ProductionPublishingJob(SVNUpdater svnUpdater, Algorithm algorithm,
|
2017-10-27 19:18:42 +02:00
|
|
|
Cluster prodCluster, String targetVREName, String category,String algorithm_type/*, String env*/) throws FileNotFoundException, UnsupportedEncodingException {
|
2017-11-29 16:29:01 +01:00
|
|
|
super(svnUpdater,DMPMClientConfiguratorManager.getInstance().getProductionConfiguration(),algorithm,prodCluster,targetVREName,category,algorithm_type);
|
|
|
|
this.logger = LoggerFactory.getLogger(StagingJob.class);***REMOVED*** this.jobLogs = new File(
|
|
|
|
|
2017-10-27 19:18:42 +02:00
|
|
|
|
2017-05-12 17:32:14 +02:00
|
|
|
***REMOVED***
|
2017-06-19 18:34:44 +02:00
|
|
|
|
2017-05-12 17:32:14 +02:00
|
|
|
@Override
|
|
|
|
protected void execute() {
|
2017-11-29 16:29:01 +01:00
|
|
|
this.logger.debug("Executing staging job...");
|
|
|
|
super.execute(new NotificationHelperProduction(), new CheckMethodProduction());
|
2017-05-12 17:32:14 +02:00
|
|
|
***REMOVED***
|
|
|
|
|
2017-10-27 19:18:42 +02:00
|
|
|
|
|
|
|
|
2017-07-24 12:32:18 +02:00
|
|
|
|
2017-10-27 19:18:42 +02:00
|
|
|
|
2017-07-24 12:32:18 +02:00
|
|
|
|
2017-11-29 16:29:01 +01:00
|
|
|
|
2017-07-24 12:32:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-12 17:32:14 +02:00
|
|
|
***REMOVED***
|