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, waitexecutepublic 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 falsepublic void execute(ExecutionContext context, BatchInfo batch, Map<String,String> arguments) throws IOException, InterruptedException
BatchExecutorexecute in interface BatchExecutorcontext - the current contextbatch - the target batcharguments - the batch argumentsIOException - if failed to create job processesInterruptedException - if interrupted while running tasksCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.