Class ApplicationClusterEntryPoint
- java.lang.Object
-
- org.apache.flink.runtime.entrypoint.ClusterEntrypoint
-
- org.apache.flink.client.deployment.application.ApplicationClusterEntryPoint
-
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.runtime.rpc.FatalErrorHandler,org.apache.flink.util.AutoCloseableAsync
public class ApplicationClusterEntryPoint extends org.apache.flink.runtime.entrypoint.ClusterEntrypointBase class for cluster entry points targeting executing applications in "Application Mode". The lifecycle of the entry point is bound to that of the specific application being executed, and themain()method of the application is run on the cluster.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplicationClusterEntryPoint(org.apache.flink.configuration.Configuration configuration, PackagedProgram program, org.apache.flink.runtime.resourcemanager.ResourceManagerFactory<?> resourceManagerFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanupDirectories(org.apache.flink.runtime.entrypoint.ClusterEntrypoint.ShutdownBehaviour shutdownBehaviour)protected static voidconfigureExecution(org.apache.flink.configuration.Configuration configuration, PackagedProgram program)protected org.apache.flink.runtime.entrypoint.component.DispatcherResourceManagerComponentFactorycreateDispatcherResourceManagerComponentFactory(org.apache.flink.configuration.Configuration configuration)protected org.apache.flink.runtime.dispatcher.ExecutionGraphInfoStorecreateSerializableExecutionGraphStore(org.apache.flink.configuration.Configuration configuration, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor)-
Methods inherited from class org.apache.flink.runtime.entrypoint.ClusterEntrypoint
closeAsync, createHaServices, createHeartbeatServices, createMetricRegistry, getRestPort, getRpcPort, getRPCPortRange, getTerminationFuture, initializeServices, loadConfiguration, onFatalError, parseArguments, runClusterEntrypoint, startCluster, stopClusterServices, supportsReactiveMode
-
-
-
-
Constructor Detail
-
ApplicationClusterEntryPoint
protected ApplicationClusterEntryPoint(org.apache.flink.configuration.Configuration configuration, PackagedProgram program, org.apache.flink.runtime.resourcemanager.ResourceManagerFactory<?> resourceManagerFactory)
-
-
Method Detail
-
createDispatcherResourceManagerComponentFactory
protected org.apache.flink.runtime.entrypoint.component.DispatcherResourceManagerComponentFactory createDispatcherResourceManagerComponentFactory(org.apache.flink.configuration.Configuration configuration)
- Specified by:
createDispatcherResourceManagerComponentFactoryin classorg.apache.flink.runtime.entrypoint.ClusterEntrypoint
-
createSerializableExecutionGraphStore
protected org.apache.flink.runtime.dispatcher.ExecutionGraphInfoStore createSerializableExecutionGraphStore(org.apache.flink.configuration.Configuration configuration, org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor)- Specified by:
createSerializableExecutionGraphStorein classorg.apache.flink.runtime.entrypoint.ClusterEntrypoint
-
configureExecution
protected static void configureExecution(org.apache.flink.configuration.Configuration configuration, PackagedProgram program) throws Exception- Throws:
Exception
-
cleanupDirectories
protected void cleanupDirectories(org.apache.flink.runtime.entrypoint.ClusterEntrypoint.ShutdownBehaviour shutdownBehaviour) throws IOException- Overrides:
cleanupDirectoriesin classorg.apache.flink.runtime.entrypoint.ClusterEntrypoint- Throws:
IOException
-
-