org.apache.flink.runtime.dispatcher.JobDispatcherFactory Java Examples

The following examples show how to use org.apache.flink.runtime.dispatcher.JobDispatcherFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JobDispatcherLeaderProcessFactoryFactory.java    From flink with Apache License 2.0 6 votes vote down vote up
@Override
public DispatcherLeaderProcessFactory createFactory(
		JobGraphStoreFactory jobGraphStoreFactory,
		Executor ioExecutor,
		RpcService rpcService,
		PartialDispatcherServices partialDispatcherServices,
		FatalErrorHandler fatalErrorHandler) {

	final JobGraph jobGraph;

	try {
		jobGraph = jobGraphRetriever.retrieveJobGraph(partialDispatcherServices.getConfiguration());
	} catch (FlinkException e) {
		throw new FlinkRuntimeException("Could not retrieve the JobGraph.", e);
	}

	final DefaultDispatcherGatewayServiceFactory defaultDispatcherServiceFactory = new DefaultDispatcherGatewayServiceFactory(
		JobDispatcherFactory.INSTANCE,
		rpcService,
		partialDispatcherServices);

	return new JobDispatcherLeaderProcessFactory(
		defaultDispatcherServiceFactory,
		jobGraph,
		fatalErrorHandler);
}
 
Example #2
Source File: JobDispatcherResourceManagerComponentFactory.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public JobDispatcherResourceManagerComponentFactory(@Nonnull ResourceManagerFactory<?> resourceManagerFactory, @Nonnull JobGraphRetriever jobGraphRetriever) {
	super(new JobDispatcherFactory(jobGraphRetriever), resourceManagerFactory, JobRestEndpointFactory.INSTANCE);
}
 
Example #3
Source File: JobDispatcherResourceManagerComponentFactory.java    From flink with Apache License 2.0 4 votes vote down vote up
public JobDispatcherResourceManagerComponentFactory(@Nonnull ResourceManagerFactory<?> resourceManagerFactory, @Nonnull JobGraphRetriever jobGraphRetriever) {
	super(new JobDispatcherFactory(jobGraphRetriever), resourceManagerFactory, JobRestEndpointFactory.INSTANCE);
}