public class ProvisionFiles extends Module
Modifier and Type | Field and Description |
---|---|
protected String |
algorithmName |
protected joptsimple.OptionSet |
options |
protected int |
s3ConnectionTimeout |
protected int |
s3MaxConnections |
protected int |
s3MaxErrorRetry |
protected int |
s3SocketTimeout |
processingAccession, VERSION
Constructor and Description |
---|
ProvisionFiles() |
Modifier and Type | Method and Description |
---|---|
ReturnValue |
do_run()
do_run.
|
ReturnValue |
do_test()
do_test.
|
ReturnValue |
do_verify_input()
do_verify_input.
|
ReturnValue |
do_verify_output()
do_verify_output.
|
ReturnValue |
do_verify_parameters()
do_verify_parameters.
|
String |
get_syntax()
get_syntax.
|
protected Cipher |
getDecryptCipher()
getDecryptCipher.
|
protected Cipher |
getEncryptCipher()
getEncryptCipher.
|
protected joptsimple.OptionParser |
getOptionParser()
getOptionParser.
|
protected boolean |
provisionFile(String input,
String output,
boolean skipIfMissing,
ArrayList<FileMetadata> fileArray,
boolean fullOutputPath,
FileMetadata metadata)
provisionFile.
|
protected boolean |
putDestination(BufferedInputStream reader,
String output,
int bufLen,
String input,
ArrayList<FileMetadata> fileArray,
boolean fullOutputPath,
FileMetadata metadata)
HTTP writeback currently not supported S3 uses multi-part upload which should deal with failed uploads (maybe) I'm not really dealing
with failed upload recovery here...
|
clean_up, get_galaxy_xml, getAlgorithm, getMetadata, getParameters, getProcessingAccession, getStderrFile, getStdoutFile, init, setAlgorithm, setMetadata, setParameters, setProcessingAccession, setStderrFile, setStdoutFile
protected joptsimple.OptionSet options
protected String algorithmName
protected int s3ConnectionTimeout
protected int s3MaxConnections
protected int s3MaxErrorRetry
protected int s3SocketTimeout
protected joptsimple.OptionParser getOptionParser()
getOptionParser.
getOptionParser
in class Module
OptionParser
object.public String get_syntax()
get_syntax.
get_syntax
in interface ModuleInterface
get_syntax
in class Module
String
object.public ReturnValue do_test()
do_test.
Things to check: * FIXMEdo_test
in interface ModuleInterface
do_test
in class Module
public ReturnValue do_verify_parameters()
do_verify_parameters.
do_verify_parameters
in interface ModuleInterface
do_verify_parameters
in class Module
public ReturnValue do_verify_input()
do_verify_input.
do_verify_input
in interface ModuleInterface
do_verify_input
in class Module
public ReturnValue do_run()
do_run.
do_run
in interface ModuleInterface
do_run
in class Module
protected boolean provisionFile(String input, String output, boolean skipIfMissing, ArrayList<FileMetadata> fileArray, boolean fullOutputPath, FileMetadata metadata)
provisionFile.
input
- original path to the file, a file path if local, otherwise a http path or s3 pathoutput
- path to the destination, a file path if local, otherwise a http path or s3 pathskipIfMissing
- skip missing files with only a warningfileArray
- metadata about the file (files) to be copiedfullOutputPath
- the full output path overrides any concatenation of variablesmetadata
- the specific filemetadata for this file, if there is clearly oneprotected boolean putDestination(BufferedInputStream reader, String output, int bufLen, String input, ArrayList<FileMetadata> fileArray, boolean fullOutputPath, FileMetadata metadata)
output
- where the file should be copied toreader
- a reader open to the file that needs to be copiedbufLen
- passed right through to filesUtilinput
- where the file is copied fromfileArray
- a ArrayList
object.fullOutputPath
- metadata
- metadata entry for the specific filepublic ReturnValue do_verify_output()
do_verify_output.
do_verify_output
in interface ModuleInterface
do_verify_output
in class Module
Copyright © 2015 SeqWare. All rights reserved.