Class EmbeddedExecutor
- java.lang.Object
-
- org.apache.flink.client.deployment.application.executors.EmbeddedExecutor
-
- All Implemented Interfaces:
org.apache.flink.core.execution.PipelineExecutor
@Internal public class EmbeddedExecutor extends Object implements org.apache.flink.core.execution.PipelineExecutor
A base class forexecutorsthat invoke directly methods of theDispatcherand do not go through the REST API.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedExecutor(Collection<org.apache.flink.api.common.JobID> submittedJobIds, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, EmbeddedJobClientCreator jobClientCreator)Creates aEmbeddedExecutor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<org.apache.flink.core.execution.JobClient>execute(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EmbeddedExecutor
public EmbeddedExecutor(Collection<org.apache.flink.api.common.JobID> submittedJobIds, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, EmbeddedJobClientCreator jobClientCreator)
Creates aEmbeddedExecutor.- Parameters:
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.
-
-
Method Detail
-
execute
public CompletableFuture<org.apache.flink.core.execution.JobClient> execute(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader) throws MalformedURLException
- Specified by:
executein interfaceorg.apache.flink.core.execution.PipelineExecutor- Throws:
MalformedURLException
-
-