class JobManagerRunner implements LeaderContender, OnCompletionActions, AutoCloseableAsync {

	public void start() throws Exception {
		try {
//			启动选举，包含jobmanager启动，executionGraph.scheduleForExecution(),以及修改jobmanger状态让coordinator监听到开始运行
			leaderElectionService.start(this);
		} catch (Exception e) {
			log.error("Could not start the JobManager because the leader election service did not start.", e);
			throw new Exception("Could not start the leader election service.", e);
		}
	}

	public  JobManagerRunner(
			final JobGraph jobGraph,
			final JobMasterServiceFactory jobMasterFactory,
			final HighAvailabilityServices haServices,
			final LibraryCacheManager libraryCacheManager,
			final Executor executor,
			final FatalErrorHandler fatalErrorHandler);

}