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, setStdoutFileprotected 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 ModuleOptionParser object.public String get_syntax()
get_syntax.
get_syntax in interface ModuleInterfaceget_syntax in class ModuleString object.public ReturnValue do_test()
do_test.
Things to check: * FIXMEdo_test in interface ModuleInterfacedo_test in class Modulepublic ReturnValue do_verify_parameters()
do_verify_parameters.
do_verify_parameters in interface ModuleInterfacedo_verify_parameters in class Modulepublic ReturnValue do_verify_input()
do_verify_input.
do_verify_input in interface ModuleInterfacedo_verify_input in class Modulepublic ReturnValue do_run()
do_run.
do_run in interface ModuleInterfacedo_run in class Moduleprotected 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 ModuleInterfacedo_verify_output in class ModuleCopyright © 2015 SeqWare. All rights reserved.