Interface FileProcessor
-
- All Known Implementing Classes:
AutomatedAnalysisFileProcessor,ChecksumFileProcessor,CoverageFileProcessor,FastqcFileProcessor,GzipFileProcessor
public interface FileProcessorResponsible for processing aSequenceFileafter the file has been uploaded to the server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.BooleanmodifiesFile()If theFileProcessorthrows aFileProcessorException, theFileProcessorshould inform the caller whether or not proceeding with the remainingFileProcessorinstances in the chain is safe.voidprocess(SequencingObject sequencingObject)Process the providedSequenceFile, then (optionally) proceed to the next processor in the chain.default booleanshouldProcessFile(SequencingObject sequencingObject)This method asks the file processor whether it should act on this file.
-
-
-
Method Detail
-
process
void process(SequencingObject sequencingObject)
Process the providedSequenceFile, then (optionally) proceed to the next processor in the chain. Any modifications to theSequenceFilemade by theFileProcessorshould be persisted by theFileProcessoritself -- theFileProcessingChain*does not* handle persistence.- Parameters:
sequencingObject- theSequencingObjectto process- Throws:
FileProcessorException- when processing fails.
-
modifiesFile
java.lang.Boolean modifiesFile()
If theFileProcessorthrows aFileProcessorException, theFileProcessorshould inform the caller whether or not proceeding with the remainingFileProcessorinstances in the chain is safe. If theFileProcessormodifies the file, then proceeding with the remainingFileProcessorin the chain is not safe.- Returns:
- whether or not the
FileProcessormodifies theSequenceFile.
-
shouldProcessFile
default boolean shouldProcessFile(SequencingObject sequencingObject)
This method asks the file processor whether it should act on this file. The processor may have some settings that would not run on certain files.- Parameters:
sequencingObject- theSequencingObjectto check- Returns:
- true if the processor should act on the file
-
-