Interface JobMasterServiceProcess
-
- All Superinterfaces:
AutoCloseable,org.apache.flink.util.AutoCloseableAsync
- All Known Implementing Classes:
DefaultJobMasterServiceProcess,JobMasterServiceProcess.WaitingForLeadership
public interface JobMasterServiceProcess extends org.apache.flink.util.AutoCloseableAsyncJobMasterServiceProcess is responsible for running aJobMasterService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJobMasterServiceProcess.WaitingForLeadership
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<JobMasterGateway>getJobMasterGatewayFuture()Future which is completed with theJobMasterGatewayonce theJobMasterServicehas been created.CompletableFuture<String>getLeaderAddressFuture()Future which is completed with theJobMasterServiceaddress once it is created.UUIDgetLeaderSessionId()The leader session id of this process.CompletableFuture<JobManagerRunnerResult>getResultFuture()Future which is completed with the result of job execution.booleanisInitializedAndRunning()True iff theJobMasterServicehas been initialized and is running.static JobMasterServiceProcesswaitingForLeadership()
-
-
-
Method Detail
-
waitingForLeadership
static JobMasterServiceProcess waitingForLeadership()
-
getLeaderSessionId
UUID getLeaderSessionId()
The leader session id of this process.
-
isInitializedAndRunning
boolean isInitializedAndRunning()
True iff theJobMasterServicehas been initialized and is running.
-
getJobMasterGatewayFuture
CompletableFuture<JobMasterGateway> getJobMasterGatewayFuture()
Future which is completed with theJobMasterGatewayonce theJobMasterServicehas 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,JobNotFinishedExceptionif the job was not finished or anThrowableif an unexpected failure occurs. Upon closing of the process, this future is completed exceptionally withJobNotFinishedException.
-
getLeaderAddressFuture
CompletableFuture<String> getLeaderAddressFuture()
Future which is completed with theJobMasterServiceaddress once it is created.
-
-