Class ApplicationClusterDeployer
- java.lang.Object
-
- org.apache.flink.client.deployment.application.cli.ApplicationClusterDeployer
-
- All Implemented Interfaces:
ApplicationDeployer
@Internal public class ApplicationClusterDeployer extends Object implements ApplicationDeployer
An entity responsible for submitting an application for execution in "Application Mode", i.e. on a dedicated cluster that is created on application submission and torn down upon application termination, and with itsmain()executed on the cluster, rather than the client.
-
-
Constructor Summary
Constructors Constructor Description ApplicationClusterDeployer(ClusterClientServiceLoader clientServiceLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ClusterID>
ClusterIDrun(org.apache.flink.configuration.Configuration configuration, ApplicationConfiguration applicationConfiguration)Submits a user program for execution and runs the main user method on the cluster.
-
-
-
Constructor Detail
-
ApplicationClusterDeployer
public ApplicationClusterDeployer(ClusterClientServiceLoader clientServiceLoader)
-
-
Method Detail
-
run
public <ClusterID> ClusterID run(org.apache.flink.configuration.Configuration configuration, ApplicationConfiguration applicationConfiguration) throws ExceptionDescription copied from interface:ApplicationDeployerSubmits a user program for execution and runs the main user method on the cluster.- Specified by:
runin interfaceApplicationDeployer- Parameters:
configuration- the configuration containing all the necessary information about submitting the user program.applicationConfiguration- anApplicationConfigurationspecific to the application to be executed.- Throws:
Exception
-
-