T - the pipeline result typeR - the pipeline request typeP - the pipeline typepublic class SimplePipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>> extends Object implements PipelineExecutor<T,R,P>
| Constructor and Description |
|---|
SimplePipelineExecutor() |
| Modifier and Type | Method and Description |
|---|---|
SimplePipelineExecutor<T,R,P> |
execute()
Execute pipelines
|
List<Throwable> |
getExceptions()
Get the collected I/O exceptions that were thrown by the pipelines.
|
Collection<P> |
getPipelines()
Get the pipelines of this executor.
|
SimplePipelineExecutor<T,R,P> |
prepare()
Prepare the pipeline execution.
|
SimplePipelineExecutor<T,R,P> |
setConcurrency(int concurrency)
Set the concurrency of this pipeline setExecutor
|
SimplePipelineExecutor<T,R,P> |
setPipelineProvider(PipelineProvider<P> provider)
Set the provider of this pipeline setExecutor
|
void |
shutdown()
Shut down this pipeline executor.
|
SimplePipelineExecutor<T,R,P> |
waitFor()
Wait for all results of the executions.
|
public SimplePipelineExecutor()
public SimplePipelineExecutor<T,R,P> setConcurrency(int concurrency)
PipelineExecutorsetConcurrency in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>concurrency - the concurrency, must be a positive integerpublic SimplePipelineExecutor<T,R,P> setPipelineProvider(PipelineProvider<P> provider)
PipelineExecutorsetPipelineProvider in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>provider - the pipeline providerpublic SimplePipelineExecutor<T,R,P> prepare()
PipelineExecutorprepare in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>public SimplePipelineExecutor<T,R,P> execute()
execute in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>public SimplePipelineExecutor<T,R,P> waitFor() throws InterruptedException, ExecutionException
waitFor in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>InterruptedExceptionExecutionExceptionpublic void shutdown() throws IOException
PipelineExecutorshutdown in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>IOExceptionpublic Collection<P> getPipelines()
getPipelines in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>public List<Throwable> getExceptions()
elasticsearch-river-jdbc