Class CopyFiles<T>
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,S>>
org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>
org.anchoranalysis.plugin.io.bean.task.CopyFiles<T>
- Type Parameters:
T- shared-state ofnaming
public class CopyFiles<T> extends org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>
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 Constructor Description CopyFiles() -
Method Summary
Modifier and Type Method Description voidafterAllJobsAreExecuted(RecordingCounter<T> sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context)RecordingCounter<T>beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.io.input.file.FileWithDirectoryInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)org.anchoranalysis.io.output.enabled.OutputEnabledMutabledefaultOutputs()voiddoJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>> input)CopyFilesMethodgetMethod()How the copying occurs from source to destination file.CopyFilesNaming<T>getNaming()How an output name (and path) is selected for an input file.booleanhasVeryQuickPerInputExecution()org.anchoranalysis.experiment.task.InputTypesExpectedinputTypesExpected()voidsetMethod(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, isInputCompatibleWith
-
Constructor Details
-
CopyFiles
public CopyFiles()
-
-
Method Details
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>
-
inputTypesExpected
public org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>
-
beforeAnyJobIsExecuted
public RecordingCounter<T> beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.io.input.file.FileWithDirectoryInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
beforeAnyJobIsExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
doJobOnInput
public void doJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>> input) throws org.anchoranalysis.experiment.JobExecutionException- Specified by:
doJobOnInputin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>- Throws:
org.anchoranalysis.experiment.JobExecutionException
-
afterAllJobsAreExecuted
public void afterAllJobsAreExecuted(RecordingCounter<T> sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
afterAllJobsAreExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileWithDirectoryInput,RecordingCounter<T>>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
defaultOutputs
public org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.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.
-