Class CopyFiles<T>
Object
AnchorBean<Task<FileWithDirectoryInput, RecordingCounter<T>>>
Task<FileWithDirectoryInput, RecordingCounter<T>>
CopyFiles<T>
- Type Parameters:
T- shared-state ofnaming
Copy files to the output-directory, possibly changing the name or performing other operations
like compression in the process.
Unusually this task does not use the InputOutputContext for each job, but rather for
the experiment as a whole when determining the destination path for files. Similarly the
message-log of the experiment is used for non-error messages.
The following outputs are produced:
| Output Name | Default? | Description |
|---|---|---|
| "copy" | yes | a copied file for each input file. |
outputs from the RecordingCounter | ||
outputs from Task |
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAllJobsAreExecuted(RecordingCounter<T> sharedState, InputOutputContext context) beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<FileWithDirectoryInput> inputs, ParametersExperiment parameters) OutputEnabledMutablevoiddoJobOnInput(InputBound<FileWithDirectoryInput, RecordingCounter<T>> input) How the copying occurs from source to destination file.How an output name (and path) is selected for an input file.booleanInputTypesExpectedvoidsetMethod(CopyFilesMethod method) How the copying occurs from source to destination file.voidsetNaming(CopyFilesNaming<T> naming) How an output name (and path) is selected for an input file.Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWithMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
CopyFiles
public CopyFiles()
-
-
Method Details
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classTask<FileWithDirectoryInput, RecordingCounter<T>>
-
inputTypesExpected
public InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classTask<FileWithDirectoryInput, RecordingCounter<T>>
-
beforeAnyJobIsExecuted
public RecordingCounter<T> beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<FileWithDirectoryInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException - Specified by:
beforeAnyJobIsExecutedin classTask<FileWithDirectoryInput, RecordingCounter<T>>- Throws:
ExperimentExecutionException
-
doJobOnInput
public void doJobOnInput(InputBound<FileWithDirectoryInput, RecordingCounter<T>> input) throws JobExecutionException - Specified by:
doJobOnInputin classTask<FileWithDirectoryInput, RecordingCounter<T>>- Throws:
JobExecutionException
-
defaultOutputs
public OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classTask<FileWithDirectoryInput, RecordingCounter<T>>
-
getMethod
How the copying occurs from source to destination file.e.g. with or without compression.
-
setMethod
How the copying occurs from source to destination file.e.g. with or without compression.
-
getNaming
How an output name (and path) is selected for an input file. -
setNaming
How an output name (and path) is selected for an input file.
-