Class TaskSerializationUtils


  • public class TaskSerializationUtils
    extends Object
    This class contains utility methods for serialization, deserialization and execution of Task objects.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • TaskSerializationUtils

        public TaskSerializationUtils()
    • Method Detail

      • execute

        public static TaskResultImpl execute​(DataFile taskContextFile)
                                      throws IOException,
                                             EoulsanException
        Execute a task context serialization file.
        Parameters:
        taskContextFile - input task context file
        Returns:
        the task result
        Throws:
        IOException - if an error occurs while reading or writing serialized files
        EoulsanException - if an error occurs while executing the task
      • execute

        public static TaskResultImpl execute​(DataFile taskContextFile,
                                             DataFile outputDir)
                                      throws IOException,
                                             EoulsanException
        Execute a task context serialization file.
        Parameters:
        taskContextFile - input task context file
        outputDir - output directory for results file
        Returns:
        the task result
        Throws:
        IOException - if an error occurs while reading or writing serialized files
        EoulsanException - if an error occurs while executing the task