package org.gcube.dataanalysis.dataminer.poolmanager.util; import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm; import org.gcube.dataanalysis.dataminer.poolmanager.process.AlgorithmPackageParser; ***REMOVED*** /** * Created by ggiammat on 5/9/17. */ public class AlgorithmBuilder { public static Algorithm create(String algorithmPackageURL) throws IOException, InterruptedException { return create(algorithmPackageURL, null, null, null, null, null, null, null); ***REMOVED*** public static Algorithm create(String algorithmPackageURL, String vre, String hostname, String name, String description, String category, String algorithmType, String skipJava) throws IOException, InterruptedException { Algorithm algo = new AlgorithmPackageParser().parsePackage(algorithmPackageURL); if(category != null){ algo.setCategory(category); ***REMOVED*** if(algorithmType != null){ algo.setAlgorithmType(algorithmType); ***REMOVED*** if(skipJava != null){ algo.setSkipJava(skipJava); ***REMOVED*** if(skipJava != null){ algo.setSkipJava(skipJava); ***REMOVED*** if(name != null){ algo.setName(name); ***REMOVED*** if(description != null){ algo.setDescription(description); ***REMOVED*** return algo; ***REMOVED*** ***REMOVED***