Class LocalEoulsanRuntime
java.lang.Object
fr.ens.biologie.genomique.eoulsan.AbstractEoulsanRuntime
fr.ens.biologie.genomique.eoulsan.LocalEoulsanRuntime
This class define the Runtime to execute low level IO operation for Eoulsan in local mode.
- Since:
- 1.0
- Author:
- Laurent Jourdren
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.ens.biologie.genomique.eoulsan.AbstractEoulsanRuntime
AbstractEoulsanRuntime.EoulsanExecMode -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(String dataSource) Create an InputStream to load data.getMode()Get Eoulsan mode.getOutputStream(String dataSource) Create an OutputStream to load data.getRawInputStream(String dataSource) Create a raw InputStream (without decompression of input data) to load data.Get the temporary directory.static voidInitialization Eoulsan runtime for external application who needed Eoulsanstatic LocalEoulsanRuntimenewEoulsanRuntime(Settings settings) Public constructor, initialize the runtime.voidSet the cluster mode.Methods inherited from class fr.ens.biologie.genomique.eoulsan.AbstractEoulsanRuntime
createFileInTempDir, createTempDir, createTempDir, createTempFile, getSettings
-
Method Details
-
getMode
Description copied from class:AbstractEoulsanRuntimeGet Eoulsan mode.- Specified by:
getModein classAbstractEoulsanRuntime- Returns:
- the Eoulsan mode
-
getTempDirectory
Description copied from class:AbstractEoulsanRuntimeGet the temporary directory.- Specified by:
getTempDirectoryin classAbstractEoulsanRuntime- Returns:
- the temporary directory as a File object
-
getInputStream
Description copied from class:AbstractEoulsanRuntimeCreate an InputStream to load data.- Specified by:
getInputStreamin classAbstractEoulsanRuntime- Parameters:
dataSource- the source of the data to load- Returns:
- an InputStream corresponding to the source
- Throws:
IOException- if an error occurs the InputStream
-
getRawInputStream
Description copied from class:AbstractEoulsanRuntimeCreate a raw InputStream (without decompression of input data) to load data.- Specified by:
getRawInputStreamin classAbstractEoulsanRuntime- Parameters:
dataSource- the source of the data to load- Returns:
- an InputStream corresponding to the source
- Throws:
IOException- if an error occurs the InputStream
-
getOutputStream
Description copied from class:AbstractEoulsanRuntimeCreate an OutputStream to load data.- Specified by:
getOutputStreamin classAbstractEoulsanRuntime- Parameters:
dataSource- the source of the data to load- Returns:
- an OutputStream corresponding to the source
- Throws:
IOException- if an error occurs the OutputStream
-
setMode
Set the cluster mode.- Parameters:
mode- Eoulsan execution mode
-
newEoulsanRuntime
Public constructor, initialize the runtime.- Parameters:
settings- Settings of the application- Returns:
- a local Eoulsan runtime
-
initEoulsanRuntimeForExternalApp
Initialization Eoulsan runtime for external application who needed Eoulsan- Throws:
IOException- if an error occurs while initializing the runtimeEoulsanException- if an error occurs while initializing the runtime
-