Class EmbeddedExecutorFactory
- java.lang.Object
-
- org.apache.flink.client.deployment.application.executors.EmbeddedExecutorFactory
-
- All Implemented Interfaces:
PipelineExecutorFactory
@Internal public class EmbeddedExecutorFactory extends Object implements PipelineExecutorFactory
AnPipelineExecutorFactory
for theEmbeddedExecutor
.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedExecutorFactory(Collection<JobID> submittedJobIds, DispatcherGateway dispatcherGateway, ScheduledExecutor retryExecutor)
Creates anEmbeddedExecutorFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineExecutor
getExecutor(Configuration configuration)
Instantiates anPipelineExecutor
compatible with the provided configuration.String
getName()
Returns the name of the executor that this factory creates.boolean
isCompatibleWith(Configuration configuration)
Returnstrue
if this factory is compatible with the options in the provided configuration,false
otherwise.
-
-
-
Constructor Detail
-
EmbeddedExecutorFactory
public EmbeddedExecutorFactory(Collection<JobID> submittedJobIds, DispatcherGateway dispatcherGateway, ScheduledExecutor retryExecutor)
Creates anEmbeddedExecutorFactory
.- 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
-
getName
public String getName()
Description copied from interface:PipelineExecutorFactory
Returns the name of the executor that this factory creates.- Specified by:
getName
in interfacePipelineExecutorFactory
-
isCompatibleWith
public boolean isCompatibleWith(Configuration configuration)
Description copied from interface:PipelineExecutorFactory
Returnstrue
if this factory is compatible with the options in the provided configuration,false
otherwise.- Specified by:
isCompatibleWith
in interfacePipelineExecutorFactory
-
getExecutor
public PipelineExecutor getExecutor(Configuration configuration)
Description copied from interface:PipelineExecutorFactory
Instantiates anPipelineExecutor
compatible with the provided configuration.- Specified by:
getExecutor
in interfacePipelineExecutorFactory
- Returns:
- the executor instance.
-
-