Class JobMasterServiceLeadershipRunner

java.lang.Object
org.apache.flink.runtime.jobmaster.JobMasterServiceLeadershipRunner
All Implemented Interfaces:
AutoCloseable, JobManagerRunner, LeaderContender, org.apache.flink.util.AutoCloseableAsync

public class JobMasterServiceLeadershipRunner extends Object implements JobManagerRunner, LeaderContender
Leadership runner for the JobMasterServiceProcess.

The responsibility of this component is to manage the leadership of the JobMasterServiceProcess. This means that the runner will create an instance of the process when it obtains the leadership. The process is stopped once the leadership is revoked.

This component only accepts signals (job result completion, initialization failure) as long as it is running and as long as the signals are coming from the current leader process. This ensures that only the current leader can affect this component.

All leadership operations are serialized. This means that granting the leadership has to complete before the leadership can be revoked and vice versa.

The resultFuture can be completed with the following values: * *