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_NAME, shutDownFuturelog, rpcServer| Constructor and Description |
|---|
MiniDispatcher(RpcService rpcService,
String endpointId,
DispatcherId fencingToken,
DispatcherServices dispatcherServices,
JobGraph jobGraph,
ClusterEntrypoint.ExecutionMode executionMode) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Acknowledge> |
cancelJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.time.Time timeout)
Cancel the given job.
|
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.
|
disposeSavepoint, getBlobServerPort, getShutDownFuture, listJobs, onFatalError, onRemovedJobGraph, onStart, onStop, requestClusterOverview, requestJob, requestJobStatus, requestMetricQueryServiceAddresses, requestMultipleJobDetails, requestOperatorBackPressureStats, requestTaskManagerMetricQueryServiceAddresses, shutDownCluster, stopWithSavepoint, triggerSavepointsetFencingTokencallAsyncWithoutFencing, getFencingToken, getMainThreadExecutor, getUnfencedMainThreadExecutor, runAsyncWithoutFencingcallAsync, closeAsync, getAddress, getEndpointId, getHostname, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, validateRunsInMainThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFencingTokengetAddress, getHostnamepublic MiniDispatcher(RpcService rpcService, String endpointId, DispatcherId fencingToken, DispatcherServices dispatcherServices, JobGraph jobGraph, ClusterEntrypoint.ExecutionMode executionMode) throws Exception
Exceptionpublic 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 finishedpublic CompletableFuture<Acknowledge> cancelJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.time.Time timeout)
RestfulGatewaycancelJob in interface RestfulGatewaycancelJob in class DispatcherjobId - identifying the job to canceltimeout - of the operationprotected void jobReachedGloballyTerminalState(ArchivedExecutionGraph archivedExecutionGraph)
jobReachedGloballyTerminalState in class Dispatcherprotected void jobNotFinished(org.apache.flink.api.common.JobID jobId)
jobNotFinished in class DispatcherCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.