class DispatcherJob implements AutoCloseableAsync {

	public CompletableFuture<JobMasterGateway> getJobMasterGateway() {
		Preconditions.checkState(
			isInitialized(),
			"JobMaster Gateway is not available during initialization");
		return jobManagerRunnerFuture.thenCompose(JobManagerRunner::getJobMasterGateway);
	}

	private  DispatcherJob(
			CompletableFuture<JobManagerRunner> jobManagerRunnerFuture,
			JobID jobId,
			String jobName,
			long initializationTimestamp);

}