Class SequentialProcessor<T extends InputFromManager,S>
- Type Parameters:
T
- input-object typeS
- shared-object type
- All Implemented Interfaces:
ReplaceTask<T,
S>
Executes jobs sequentially, without any parallelism.
This is the simplest form of a JobProcessor
.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TaskStatistics
execute
(Outputter rootOutputter, List<T> inputs, ParametersExperiment parametersExperiment) Executes the task on allinputs
.Methods inherited from class org.anchoranalysis.experiment.bean.processor.JobProcessor
executeLogStatistics, getTask, hasVeryQuickPerInputExecution, isInputCompatibleWith, isSuppressExceptions, replaceTask, setSuppressExceptions, setTask
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SequentialProcessor
public SequentialProcessor()
-
-
Method Details
-
execute
protected TaskStatistics execute(Outputter rootOutputter, List<T> inputs, ParametersExperiment parametersExperiment) throws ExperimentExecutionException Description copied from class:JobProcessor
Executes the task on allinputs
.It is expected that elements are removed from
inputs
as they are consumed so as to allow garbage-collection of these items before all jobs are processed (as the list might be quite large).- Specified by:
execute
in classJobProcessor<T extends InputFromManager,
S> - Parameters:
rootOutputter
- an outputter, bound to the base (root) output directory into which outputted files are written.inputs
- the inputs to applytask
on.parametersExperiment
- parameters that exist pertaining to the experiment that is underway.- Returns:
- statistics about the success/failure/execution-time etc. of applying the task to inputs.
- Throws:
ExperimentExecutionException
- if anything goes wrong executing the experiment (but not necessarily if a processing a particular input fails whensuppressExceptions == true
.
-