Class EmbeddedExecutorServiceLoader
- java.lang.Object
-
- org.apache.flink.client.deployment.application.executors.EmbeddedExecutorServiceLoader
-
- All Implemented Interfaces:
org.apache.flink.core.execution.PipelineExecutorServiceLoader
@Internal public class EmbeddedExecutorServiceLoader extends Object implements org.apache.flink.core.execution.PipelineExecutorServiceLoader
APipelineExecutorServiceLoaderthat always returns anEmbeddedExecutorFactory. This is useful when running the user's main on the cluster.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedExecutorServiceLoader(Collection<org.apache.flink.api.common.JobID> submittedJobIds, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, org.apache.flink.util.concurrent.ScheduledExecutor retryExecutor)Creates anEmbeddedExecutorServiceLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.core.execution.PipelineExecutorFactorygetExecutorFactory(org.apache.flink.configuration.Configuration configuration)java.util.stream.Stream<String>getExecutorNames()
-
-
-
Constructor Detail
-
EmbeddedExecutorServiceLoader
public EmbeddedExecutorServiceLoader(Collection<org.apache.flink.api.common.JobID> submittedJobIds, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, org.apache.flink.util.concurrent.ScheduledExecutor retryExecutor)
Creates anEmbeddedExecutorServiceLoader.- Parameters:
submittedJobIds- a list that is going to be filled by theEmbeddedExecutorwith 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
-
getExecutorFactory
public org.apache.flink.core.execution.PipelineExecutorFactory getExecutorFactory(org.apache.flink.configuration.Configuration configuration)
- Specified by:
getExecutorFactoryin interfaceorg.apache.flink.core.execution.PipelineExecutorServiceLoader
-
getExecutorNames
public java.util.stream.Stream<String> getExecutorNames()
- Specified by:
getExecutorNamesin interfaceorg.apache.flink.core.execution.PipelineExecutorServiceLoader
-
-