Class LocalUploadModule
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
-
- fr.ens.biologie.genomique.eoulsan.modules.mgmt.upload.UploadModule
-
- fr.ens.biologie.genomique.eoulsan.modules.mgmt.upload.LocalUploadModule
-
- All Implemented Interfaces:
Module
public class LocalUploadModule extends UploadModule
This class define a Step for local mode file uploading.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description LocalUploadModule(DataFile dest)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
copy(Map<DataFile,DataFile> files)
Copy files to destinations.protected DataFile
getUploadedDataFile(DataFile file)
Generate the DataFile Object for the uploaded DataFileprotected DataFile
getUploadedDataFile(DataFile file, Step step, Sample sample, String portName, DataFormat format, int fileIndex)
Generate the DataFile Object for the uploaded DataFile-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.modules.mgmt.upload.UploadModule
execute, getDest, getName, getVersion
-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
configure, getChecker, getDescription, getInputPorts, getOutputPorts, getParallelizationMode, getRequiredEoulsanVersion, getRequirements
-
-
-
-
Constructor Detail
-
LocalUploadModule
public LocalUploadModule(DataFile dest)
Public constructor.- Parameters:
dest
- destination of the files to upload
-
-
Method Detail
-
getUploadedDataFile
protected DataFile getUploadedDataFile(DataFile file) throws IOException
Description copied from class:UploadModule
Generate the DataFile Object for the uploaded DataFile- Specified by:
getUploadedDataFile
in classUploadModule
- Parameters:
file
- DataFile to upload- Returns:
- a new DataFile object with the path to the upload DataFile
- Throws:
IOException
- if an error occurs while creating the result DataFile
-
getUploadedDataFile
protected DataFile getUploadedDataFile(DataFile file, Step step, Sample sample, String portName, DataFormat format, int fileIndex) throws IOException
Description copied from class:UploadModule
Generate the DataFile Object for the uploaded DataFile- Specified by:
getUploadedDataFile
in classUploadModule
- Parameters:
file
- DataFile to uploadsample
- the sample for the sourceportName
- the port nameformat
- the format of the file to uploadfileIndex
- file index for multifile data- Returns:
- a new DataFile object with the path to the upload DataFile
- Throws:
IOException
- if an error occurs while creating the result DataFile
-
copy
protected void copy(Map<DataFile,DataFile> files) throws IOException
Description copied from class:UploadModule
Copy files to destinations.- Specified by:
copy
in classUploadModule
- Parameters:
files
- map with source and destination for each file- Throws:
IOException
- if an error occurs while copying files
-
-