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.AutoCloseableAsync
JobMasterServiceProcess is responsible for running a
JobMasterService.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionFuture which is completed with theJobMasterGatewayonce theJobMasterServicehas been created.Future which is completed with theJobMasterServiceaddress once it is created.The leader session id of this process.Future which is completed with the result of job execution.booleanTrue iff theJobMasterServicehas been initialized and is running.static JobMasterServiceProcessMethods inherited from interface org.apache.flink.util.AutoCloseableAsync
close, closeAsync
-
Method Details
-
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.
-