Java Code Examples for org.apache.flink.runtime.entrypoint.component.DefaultDispatcherResourceManagerComponentFactory#createJobComponentFactory()

The following examples show how to use org.apache.flink.runtime.entrypoint.component.DefaultDispatcherResourceManagerComponentFactory#createJobComponentFactory() . 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: StatefulFunctionsClusterEntryPoint.java    From stateful-functions with Apache License 2.0 5 votes vote down vote up
@Override
protected DispatcherResourceManagerComponentFactory
    createDispatcherResourceManagerComponentFactory(Configuration configuration) {
  return DefaultDispatcherResourceManagerComponentFactory.createJobComponentFactory(
      StandaloneResourceManagerFactory.INSTANCE,
      new StatefulFunctionsJobGraphRetriever(jobId, savepointRestoreSettings, programArguments));
}
 
Example 2
Source File: StatefulFunctionsClusterEntryPoint.java    From flink-statefun with Apache License 2.0 5 votes vote down vote up
@Override
protected DispatcherResourceManagerComponentFactory
    createDispatcherResourceManagerComponentFactory(Configuration configuration) {
  return DefaultDispatcherResourceManagerComponentFactory.createJobComponentFactory(
      StandaloneResourceManagerFactory.INSTANCE,
      new StatefulFunctionsJobGraphRetriever(
          jobId, savepointRestoreSettings, parallelism, programArguments));
}
 
Example 3
Source File: MesosJobClusterEntrypoint.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected DefaultDispatcherResourceManagerComponentFactory createDispatcherResourceManagerComponentFactory(Configuration configuration) throws IOException {
	return DefaultDispatcherResourceManagerComponentFactory.createJobComponentFactory(
		new MesosResourceManagerFactory(
			mesosServices,
			schedulerConfiguration),
		FileJobGraphRetriever.createFrom(configuration, ClusterEntrypointUtils.tryFindUserLibDirectory().orElse(null)));
}
 
Example 4
Source File: YarnJobClusterEntrypoint.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
protected DefaultDispatcherResourceManagerComponentFactory createDispatcherResourceManagerComponentFactory(Configuration configuration) throws IOException {
	return DefaultDispatcherResourceManagerComponentFactory.createJobComponentFactory(
		YarnResourceManagerFactory.getInstance(),
		FileJobGraphRetriever.createFrom(
				configuration,
				YarnEntrypointUtils.getUsrLibDir(configuration).orElse(null)));
}