Class GenericWorker

  • All Implemented Interfaces:
    org.gcube.dataanalysis.ecoengine.interfaces.AlgorithmDescriptor, org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent, org.gcube.dataanalysis.ecoengine.interfaces.Transducerer

    public class GenericWorker
    extends StandardLocalInfraAlgorithm
    • Field Detail

      • AlgorithmClassParameter

        public static String AlgorithmClassParameter
      • RightSetStartIndexParameter

        public static String RightSetStartIndexParameter
      • NumberOfRightElementsToProcessParameter

        public static String NumberOfRightElementsToProcessParameter
      • LeftSetStartIndexParameter

        public static String LeftSetStartIndexParameter
      • NumberOfLeftElementsToProcessParameter

        public static String NumberOfLeftElementsToProcessParameter
      • IsDuplicateParameter

        public static String IsDuplicateParameter
      • SessionParameter

        public static String SessionParameter
      • ConfigurationFileParameter

        public static String ConfigurationFileParameter
      • DeleteTemporaryFilesParameter

        public static String DeleteTemporaryFilesParameter
      • OutputParameter

        public static String OutputParameter
      • TASK_SUCCESS

        public static String TASK_SUCCESS
      • TASK_FAILURE

        public static String TASK_FAILURE
      • TASK_UNDEFINED

        public static String TASK_UNDEFINED
    • Constructor Detail

      • GenericWorker

        public GenericWorker()
    • Method Detail

      • executeAlgorithm

        public void executeAlgorithm​(String algorithmClass,
                                     int rightStartIndex,
                                     int numberOfRightElementsToProcess,
                                     int leftStartIndex,
                                     int numberOfLeftElementsToProcess,
                                     boolean isduplicate,
                                     String session,
                                     File nodeConfigurationFileObject,
                                     boolean deleteFiles)
                              throws Exception
        Throws:
        Exception
      • init

        public void init()
                  throws Exception
        Specified by:
        init in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
        Specified by:
        init in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
        Throws:
        Exception
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.gcube.dataanalysis.ecoengine.interfaces.AlgorithmDescriptor
        Specified by:
        getDescription in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
      • process

        protected void process()
                        throws Exception
        Specified by:
        process in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
        Throws:
        Exception
      • setInputParameters

        protected void setInputParameters()
        Specified by:
        setInputParameters in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent
        Specified by:
        shutdown in class org.gcube.dataanalysis.ecoengine.interfaces.StandardLocalExternalAlgorithm