Class TaskSerializationUtils
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.workflow.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 Summary
Constructors Constructor Description TaskSerializationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskResultImpl
execute(DataFile taskContextFile)
Execute a task context serialization file.static TaskResultImpl
execute(DataFile taskContextFile, DataFile outputDir)
Execute a task context serialization file.
-
-
-
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 filesEoulsanException
- 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 fileoutputDir
- output directory for results file- Returns:
- the task result
- Throws:
IOException
- if an error occurs while reading or writing serialized filesEoulsanException
- if an error occurs while executing the task
-
-