public class BasicBatchExecutor extends Object implements BatchExecutor
BatchExecutor
.Constructor and Description |
---|
BasicBatchExecutor(JobflowExecutor jobflowExecutor)
Creates a new instance.
|
BasicBatchExecutor(JobflowExecutor jobflowExecutor,
Function<JobflowInfo,String> executionIds)
Creates a new instance.
|
BasicBatchExecutor(JobflowExecutor jobflowExecutor,
Supplier<String> executionIds)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ExecutionContext context,
BatchInfo batch,
Map<String,String> arguments)
Executes the given batch.
|
BasicBatchExecutor |
withValidateParameters(boolean enable)
Sets whether or not validates batch arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public BasicBatchExecutor(JobflowExecutor jobflowExecutor, Function<JobflowInfo,String> executionIds)
jobflowExecutor
- the jobflow executorexecutionIds
- the execution ID generatorpublic BasicBatchExecutor(JobflowExecutor jobflowExecutor, Supplier<String> executionIds)
jobflowExecutor
- the jobflow executorexecutionIds
- the execution ID generatorpublic BasicBatchExecutor(JobflowExecutor jobflowExecutor)
jobflowExecutor
- the jobflow executorpublic BasicBatchExecutor withValidateParameters(boolean enable)
enable
- true
to enable batch arguments, otherwise false
public void execute(ExecutionContext context, BatchInfo batch, Map<String,String> arguments) throws IOException, InterruptedException
BatchExecutor
execute
in interface BatchExecutor
context
- the current contextbatch
- the target batcharguments
- the batch argumentsIOException
- if failed to create job processesInterruptedException
- if interrupted while running tasksCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.