public abstract class JobClusterEntrypoint extends ClusterEntrypoint
ClusterEntrypoint.ExecutionMode
EXECUTION_MODE, LOG, RUNTIME_FAILURE_RETURN_CODE, STARTUP_FAILURE_RETURN_CODE, SUCCESS_RETURN_CODE
Constructor and Description |
---|
JobClusterEntrypoint(Configuration configuration) |
configureFileSystems, createHaServices, createHeartbeatServices, createMetricRegistry, createResourceManager, createRpcService, getRPCPortRange, getTerminationFuture, initializeServices, installSecurityContext, loadConfiguration, onFatalError, parseArguments, runCluster, shutDownAndTerminate, startCluster, startClusterComponents, stopClusterComponents, stopClusterServices
public JobClusterEntrypoint(Configuration configuration)
protected MiniDispatcherRestEndpoint createRestEndpoint(Configuration configuration, LeaderGatewayRetriever<DispatcherGateway> dispatcherGatewayRetriever, LeaderGatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, TransientBlobService transientBlobService, ExecutorService executor, MetricQueryServiceRetriever metricQueryServiceRetriever, LeaderElectionService leaderElectionService) throws Exception
createRestEndpoint
in class ClusterEntrypoint
Exception
protected ArchivedExecutionGraphStore createSerializableExecutionGraphStore(Configuration configuration, ScheduledExecutor scheduledExecutor)
createSerializableExecutionGraphStore
in class ClusterEntrypoint
protected Dispatcher createDispatcher(Configuration configuration, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, ResourceManagerGateway resourceManagerGateway, BlobServer blobServer, HeartbeatServices heartbeatServices, JobManagerMetricGroup jobManagerMetricGroup, @Nullable String metricQueryServicePath, ArchivedExecutionGraphStore archivedExecutionGraphStore, FatalErrorHandler fatalErrorHandler, @Nullable String restAddress, HistoryServerArchivist historyServerArchivist) throws Exception
createDispatcher
in class ClusterEntrypoint
Exception
protected abstract JobGraph retrieveJobGraph(Configuration configuration) throws FlinkException
FlinkException
protected abstract void registerShutdownActions(CompletableFuture<ApplicationStatus> terminationFuture)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.