Interface JobMasterServiceProcess
-
- All Superinterfaces:
AutoCloseable
,AutoCloseableAsync
- All Known Implementing Classes:
DefaultJobMasterServiceProcess
,JobMasterServiceProcess.WaitingForLeadership
public interface JobMasterServiceProcess extends AutoCloseableAsync
JobMasterServiceProcess is responsible for running aJobMasterService
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JobMasterServiceProcess.WaitingForLeadership
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<JobMasterGateway>
getJobMasterGatewayFuture()
Future which is completed with theJobMasterGateway
once theJobMasterService
has been created.CompletableFuture<String>
getLeaderAddressFuture()
Future which is completed with theJobMasterService
address once it is created.UUID
getLeaderSessionId()
The leader session id of this process.CompletableFuture<JobManagerRunnerResult>
getResultFuture()
Future which is completed with the result of job execution.boolean
isInitializedAndRunning()
True iff theJobMasterService
has been initialized and is running.static JobMasterServiceProcess
waitingForLeadership()
-
Methods inherited from interface org.apache.flink.util.AutoCloseableAsync
close, closeAsync
-
-
-
-
Method Detail
-
waitingForLeadership
static JobMasterServiceProcess waitingForLeadership()
-
getLeaderSessionId
UUID getLeaderSessionId()
The leader session id of this process.
-
isInitializedAndRunning
boolean isInitializedAndRunning()
True iff theJobMasterService
has been initialized and is running.
-
getJobMasterGatewayFuture
CompletableFuture<JobMasterGateway> getJobMasterGatewayFuture()
Future which is completed with theJobMasterGateway
once theJobMasterService
has been created. Upon closing of the process, this future is completed exceptionally if it is still uncompleted.
-
getResultFuture
CompletableFuture<JobManagerRunnerResult> getResultFuture()
Future which is completed with the result of job execution. The job's result can be theJobManagerRunnerResult
,JobNotFinishedException
if the job was not finished or anThrowable
if an unexpected failure occurs. Upon closing of the process, this future is completed exceptionally withJobNotFinishedException
.
-
getLeaderAddressFuture
CompletableFuture<String> getLeaderAddressFuture()
Future which is completed with theJobMasterService
address once it is created.
-
-