Class ContextUtils
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.ContextUtils
This class define utility methods on Context.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataFilegetHadoopWorkingDirectory(TaskContext context) Get the Hadoop working directory.static DataFilegetJarPathname(TaskContext context) Get the application jar file.static DataFilegetJobDirectory(TaskContext context) Get the job directory.static DataFilegetLocalWorkingDirectory(TaskContext context) Get the local working directory.static DataFilegetTaskOutputDirectory(TaskContext context) Get the task output directory.
-
Method Details
-
getJobDirectory
Get the job directory.- Parameters:
context- task context- Returns:
- Returns the job directory
-
getJarPathname
Get the application jar file.- Parameters:
context- task context- Returns:
- Returns the jar file
-
getLocalWorkingDirectory
Get the local working directory.- Parameters:
context- task context- Returns:
- Returns the local working directory
-
getHadoopWorkingDirectory
Get the Hadoop working directory.- Parameters:
context- task context- Returns:
- Returns the Hadoop working directory
-
getTaskOutputDirectory
Get the task output directory.- Parameters:
context- task context- Returns:
- Returns the task output directory
-