Class WebSubmissionExecutorFactory
- java.lang.Object
-
- org.apache.flink.client.deployment.application.executors.WebSubmissionExecutorFactory
-
- All Implemented Interfaces:
PipelineExecutorFactory
@Internal public class WebSubmissionExecutorFactory extends Object implements PipelineExecutorFactory
-
-
Constructor Summary
Constructors Constructor Description WebSubmissionExecutorFactory(Collection<JobID> submittedJobIds, DispatcherGateway dispatcherGateway)
Creates anWebSubmissionExecutorFactory
.
-
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
-
WebSubmissionExecutorFactory
public WebSubmissionExecutorFactory(Collection<JobID> submittedJobIds, DispatcherGateway dispatcherGateway)
Creates anWebSubmissionExecutorFactory
.- 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.
-
-