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.ClusterEntrypoint
Base 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 the
main() method of the application is run on the cluster.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.runtime.entrypoint.ClusterEntrypoint
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.ExecutionMode, org.apache.flink.runtime.entrypoint.ClusterEntrypoint.ShutdownBehaviour -
Field Summary
Fields inherited from class org.apache.flink.runtime.entrypoint.ClusterEntrypoint
INTERNAL_CLUSTER_EXECUTION_MODE, LOG, RUNTIME_FAILURE_RETURN_CODE, STARTUP_FAILURE_RETURN_CODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApplicationClusterEntryPoint(org.apache.flink.configuration.Configuration configuration, PackagedProgram program, org.apache.flink.runtime.resourcemanager.ResourceManagerFactory<?> resourceManagerFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, installSecurityContext, loadConfiguration, onFatalError, parseArguments, runClusterEntrypoint, startCluster, stopClusterServices, supportsReactiveModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.AutoCloseableAsync
close
-
Constructor Details
-
ApplicationClusterEntryPoint
protected ApplicationClusterEntryPoint(org.apache.flink.configuration.Configuration configuration, PackagedProgram program, org.apache.flink.runtime.resourcemanager.ResourceManagerFactory<?> resourceManagerFactory)
-
-
Method Details
-
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
-