@Internal public class EmbeddedExecutor extends Object implements org.apache.flink.core.execution.PipelineExecutor
executors that invoke directly methods of the
Dispatcher and do
not go through the REST API.| 构造器和说明 |
|---|
EmbeddedExecutor(Collection<org.apache.flink.api.common.JobID> submittedJobIds,
org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway,
EmbeddedJobClientCreator jobClientCreator)
Creates a
EmbeddedExecutor. |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<org.apache.flink.core.execution.JobClient> |
execute(org.apache.flink.api.dag.Pipeline pipeline,
org.apache.flink.configuration.Configuration configuration) |
public EmbeddedExecutor(Collection<org.apache.flink.api.common.JobID> submittedJobIds, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, EmbeddedJobClientCreator jobClientCreator)
EmbeddedExecutor.submittedJobIds - a list that is going to be filled with the job ids of the
new jobs that will be submitted. This is essentially used to return the submitted job ids
to the caller.dispatcherGateway - the dispatcher of the cluster which is going to be used to submit jobs.public CompletableFuture<org.apache.flink.core.execution.JobClient> execute(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration configuration) throws MalformedURLException
execute 在接口中 org.apache.flink.core.execution.PipelineExecutorMalformedURLExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.