public class MiniDispatcher extends Dispatcher
JobClusterEntrypoint.
The mini dispatcher is initialized with a single JobGraph which it runs.
Depending on the ClusterEntrypoint.ExecutionMode, the mini dispatcher will directly
terminate after job completion if its execution mode is ClusterEntrypoint.ExecutionMode#DETACHED.
RpcEndpoint.MainThreadExecutorDISPATCHER_NAMElog, rpcServer| Constructor and Description |
|---|
MiniDispatcher(RpcService rpcService,
String endpointId,
org.apache.flink.configuration.Configuration configuration,
HighAvailabilityServices highAvailabilityServices,
GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever,
BlobServer blobServer,
HeartbeatServices heartbeatServices,
JobManagerMetricGroup jobManagerMetricGroup,
String metricQueryServicePath,
ArchivedExecutionGraphStore archivedExecutionGraphStore,
JobManagerRunnerFactory jobManagerRunnerFactory,
FatalErrorHandler fatalErrorHandler,
HistoryServerArchivist historyServerArchivist,
JobGraph jobGraph,
ClusterEntrypoint.ExecutionMode executionMode) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ApplicationStatus> |
getJobTerminationFuture() |
protected void |
jobNotFinished(org.apache.flink.api.common.JobID jobId) |
protected void |
jobReachedGloballyTerminalState(ArchivedExecutionGraph archivedExecutionGraph) |
CompletableFuture<JobResult> |
requestJobResult(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Requests the
JobResult of a job specified by the given jobId. |
CompletableFuture<Acknowledge> |
submitJob(JobGraph jobGraph,
org.apache.flink.api.common.time.Time timeout)
Submit a job to the dispatcher.
|
cancelJob, disposeSavepoint, getBlobServerPort, grantLeadership, handleError, listJobs, onAddedJobGraph, onFatalError, onRemovedJobGraph, onStart, onStop, requestClusterOverview, requestJob, requestJobStatus, requestMetricQueryServicePaths, requestMultipleJobDetails, requestOperatorBackPressureStats, requestTaskManagerMetricQueryServicePaths, rescaleJob, revokeLeadership, shutDownCluster, stopJob, triggerSavepointcallAsyncWithoutFencing, getFencingToken, getMainThreadExecutor, getUnfencedMainThreadExecutor, runAsyncWithoutFencing, setFencingTokencallAsync, closeAsync, getAddress, getEndpointId, getHostname, getRpcService, getSelfGateway, getTerminationFuture, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, validateRunsInMainThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFencingTokengetAddress, getHostnamegetAddresspublic MiniDispatcher(RpcService rpcService, String endpointId, org.apache.flink.configuration.Configuration configuration, HighAvailabilityServices highAvailabilityServices, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, BlobServer blobServer, HeartbeatServices heartbeatServices, JobManagerMetricGroup jobManagerMetricGroup, @Nullable String metricQueryServicePath, ArchivedExecutionGraphStore archivedExecutionGraphStore, JobManagerRunnerFactory jobManagerRunnerFactory, FatalErrorHandler fatalErrorHandler, HistoryServerArchivist historyServerArchivist, JobGraph jobGraph, ClusterEntrypoint.ExecutionMode executionMode) throws Exception
Exceptionpublic CompletableFuture<ApplicationStatus> getJobTerminationFuture()
public CompletableFuture<Acknowledge> submitJob(JobGraph jobGraph, org.apache.flink.api.common.time.Time timeout)
DispatcherGatewaysubmitJob in interface DispatcherGatewaysubmitJob in class DispatcherjobGraph - JobGraph to submittimeout - RPC timeoutpublic CompletableFuture<JobResult> requestJobResult(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
RestfulGatewayJobResult of a job specified by the given jobId.requestJobResult in interface RestfulGatewayrequestJobResult in class DispatcherjobId - identifying the job for which to retrieve the JobResult.timeout - for the asynchronous operationJobResult once the job has finishedprotected void jobReachedGloballyTerminalState(ArchivedExecutionGraph archivedExecutionGraph)
jobReachedGloballyTerminalState in class Dispatcherprotected void jobNotFinished(org.apache.flink.api.common.JobID jobId)
jobNotFinished in class DispatcherCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.