public interface JobManagerRunner
extends org.apache.flink.util.AutoCloseableAsync
JobMaster.| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Acknowledge> |
cancel(org.apache.flink.api.common.time.Time timeout)
Cancels the currently executed job.
|
org.apache.flink.api.common.JobID |
getJobID()
Get the job id of the executed job.
|
CompletableFuture<JobMasterGateway> |
getJobMasterGateway()
Get the
JobMasterGateway of the JobMaster. |
CompletableFuture<JobManagerRunnerResult> |
getResultFuture()
Get the result future of this runner.
|
boolean |
isInitialized()
Flag indicating if the JobManagerRunner has been initialized.
|
CompletableFuture<ExecutionGraphInfo> |
requestJob(org.apache.flink.api.common.time.Time timeout)
Requests the
ExecutionGraphInfo of the executed job. |
CompletableFuture<JobDetails> |
requestJobDetails(org.apache.flink.api.common.time.Time timeout)
Request the details of the executed job.
|
CompletableFuture<org.apache.flink.api.common.JobStatus> |
requestJobStatus(org.apache.flink.api.common.time.Time timeout)
Requests the current job status.
|
void |
start()
Start the execution of the
JobMaster. |
void start()
throws Exception
JobMaster.Exception - if the JobMaster cannot be startedCompletableFuture<JobMasterGateway> getJobMasterGateway()
JobMasterGateway of the JobMaster. The future is only completed if
the JobMaster becomes leader.CompletableFuture<JobManagerRunnerResult> getResultFuture()
JobMaster fails. If the
result future is completed exceptionally via JobNotFinishedException, then this
signals that the job has not been completed successfully. All other exceptional completions
denote an unexpected exception which leads to a process restart.org.apache.flink.api.common.JobID getJobID()
CompletableFuture<Acknowledge> cancel(org.apache.flink.api.common.time.Time timeout)
timeout - of this operationCompletableFuture<org.apache.flink.api.common.JobStatus> requestJobStatus(org.apache.flink.api.common.time.Time timeout)
timeout - for the rpc callCompletableFuture<JobDetails> requestJobDetails(org.apache.flink.api.common.time.Time timeout)
timeout - for the rpc callCompletableFuture<ExecutionGraphInfo> requestJob(org.apache.flink.api.common.time.Time timeout)
ExecutionGraphInfo of the executed job.timeout - for the rpc callExecutionGraphInfo of the executed jobboolean isInitialized()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.