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

The following examples show how to use org.apache.flink.runtime.dispatcher.DispatcherFactory. 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: AbstractDispatcherResourceManagerComponentFactory.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public AbstractDispatcherResourceManagerComponentFactory(
		@Nonnull DispatcherFactory<T> dispatcherFactory,
		@Nonnull ResourceManagerFactory<?> resourceManagerFactory,
		@Nonnull RestEndpointFactory<U> restEndpointFactory) {
	this.dispatcherFactory = dispatcherFactory;
	this.resourceManagerFactory = resourceManagerFactory;
	this.restEndpointFactory = restEndpointFactory;
}
 
Example #2
Source File: AbstractDispatcherResourceManagerComponentFactory.java    From flink with Apache License 2.0 5 votes vote down vote up
public AbstractDispatcherResourceManagerComponentFactory(
		@Nonnull DispatcherFactory<T> dispatcherFactory,
		@Nonnull ResourceManagerFactory<?> resourceManagerFactory,
		@Nonnull RestEndpointFactory<U> restEndpointFactory) {
	this.dispatcherFactory = dispatcherFactory;
	this.resourceManagerFactory = resourceManagerFactory;
	this.restEndpointFactory = restEndpointFactory;
}
 
Example #3
Source File: DefaultDispatcherGatewayServiceFactory.java    From flink with Apache License 2.0 5 votes vote down vote up
DefaultDispatcherGatewayServiceFactory(
		DispatcherFactory dispatcherFactory,
		RpcService rpcService,
		PartialDispatcherServices partialDispatcherServices) {
	this.dispatcherFactory = dispatcherFactory;
	this.rpcService = rpcService;
	this.partialDispatcherServices = partialDispatcherServices;
}
 
Example #4
Source File: ApplicationDispatcherLeaderProcessFactoryFactory.java    From flink with Apache License 2.0 5 votes vote down vote up
private ApplicationDispatcherLeaderProcessFactoryFactory(
		final Configuration configuration,
		final DispatcherFactory dispatcherFactory,
		final PackagedProgram program) {
	this.configuration = checkNotNull(configuration);
	this.dispatcherFactory = checkNotNull(dispatcherFactory);
	this.program = checkNotNull(program);
}
 
Example #5
Source File: ApplicationDispatcherGatewayServiceFactory.java    From flink with Apache License 2.0 5 votes vote down vote up
public ApplicationDispatcherGatewayServiceFactory(
		Configuration configuration,
		DispatcherFactory dispatcherFactory,
		PackagedProgram application,
		RpcService rpcService,
		PartialDispatcherServices partialDispatcherServices) {
	this.configuration = configuration;
	this.dispatcherFactory = dispatcherFactory;
	this.application = checkNotNull(application);
	this.rpcService = rpcService;
	this.partialDispatcherServices = partialDispatcherServices;
}
 
Example #6
Source File: SessionDispatcherResourceManagerComponentFactory.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
public SessionDispatcherResourceManagerComponentFactory(
		@Nonnull DispatcherFactory<Dispatcher> dispatcherFactory,
		@Nonnull ResourceManagerFactory<?> resourceManagerFactory) {
	super(dispatcherFactory, resourceManagerFactory, SessionRestEndpointFactory.INSTANCE);
}
 
Example #7
Source File: SessionDispatcherResourceManagerComponentFactory.java    From flink with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
public SessionDispatcherResourceManagerComponentFactory(
		@Nonnull DispatcherFactory<Dispatcher> dispatcherFactory,
		@Nonnull ResourceManagerFactory<?> resourceManagerFactory) {
	super(dispatcherFactory, resourceManagerFactory, SessionRestEndpointFactory.INSTANCE);
}
 
Example #8
Source File: SessionDispatcherLeaderProcessFactoryFactory.java    From flink with Apache License 2.0 4 votes vote down vote up
private SessionDispatcherLeaderProcessFactoryFactory(DispatcherFactory dispatcherFactory) {
	this.dispatcherFactory = dispatcherFactory;
}
 
Example #9
Source File: SessionDispatcherLeaderProcessFactoryFactory.java    From flink with Apache License 2.0 4 votes vote down vote up
public static SessionDispatcherLeaderProcessFactoryFactory create(DispatcherFactory dispatcherFactory) {
	return new SessionDispatcherLeaderProcessFactoryFactory(dispatcherFactory);
}
 
Example #10
Source File: DefaultDispatcherRunnerFactory.java    From flink with Apache License 2.0 4 votes vote down vote up
public static DefaultDispatcherRunnerFactory createSessionRunner(DispatcherFactory dispatcherFactory) {
	return new DefaultDispatcherRunnerFactory(
		SessionDispatcherLeaderProcessFactoryFactory.create(dispatcherFactory));
}
 
Example #11
Source File: ApplicationDispatcherLeaderProcessFactoryFactory.java    From flink with Apache License 2.0 4 votes vote down vote up
public static ApplicationDispatcherLeaderProcessFactoryFactory create(
		final Configuration configuration,
		final DispatcherFactory dispatcherFactory,
		final PackagedProgram program) {
	return new ApplicationDispatcherLeaderProcessFactoryFactory(configuration, dispatcherFactory, program);
}