public interface JobManagerRunner extends AutoCloseableAsync
JobMaster
.Modifier and Type | Method and Description |
---|---|
CompletableFuture<Acknowledge> |
cancel(Time timeout)
Cancels the currently executed job.
|
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(Time timeout)
Requests the
ExecutionGraphInfo of the executed job. |
CompletableFuture<JobDetails> |
requestJobDetails(Time timeout)
Request the details of the executed job.
|
CompletableFuture<JobStatus> |
requestJobStatus(Time timeout)
Requests the current job status.
|
void |
start()
Start the execution of the
JobMaster . |
close, closeAsync
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.JobID getJobID()
CompletableFuture<Acknowledge> cancel(Time timeout)
timeout
- of this operationCompletableFuture<JobStatus> requestJobStatus(Time timeout)
timeout
- for the rpc callCompletableFuture<JobDetails> requestJobDetails(Time timeout)
timeout
- for the rpc callCompletableFuture<ExecutionGraphInfo> requestJob(Time timeout)
ExecutionGraphInfo
of the executed job.timeout
- for the rpc callExecutionGraphInfo
of the executed jobboolean isInitialized()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.