Examples of GridProjectionFactoryRegistry


Examples of org.springframework.yarn.am.grid.support.GridProjectionFactoryRegistry

    @Autowired(required = false)
    private List<GridProjectionFactory> gridProjectionFactories;

    @Bean
    public GridProjectionFactoryLocator gridProjectionFactoryLocator() {
      GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
      if (gridProjectionFactories != null) {
        for (GridProjectionFactory factory : gridProjectionFactories) {
          registry.addGridProjectionFactory(factory);
        }
      }
      return registry;
    }
View Full Code Here

Examples of org.springframework.yarn.am.grid.support.GridProjectionFactoryRegistry

      return new SyncTaskExecutor();
    }

    @Bean
    public GridProjectionFactoryLocator gridProjectionFactoryLocator() {
      GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
      registry.addGridProjectionFactory(new DefaultGridProjectionFactory());
      return registry;
    }
View Full Code Here

Examples of org.springframework.yarn.am.grid.support.GridProjectionFactoryRegistry

      return new SyncTaskExecutor();
    }

    @Bean
    public GridProjectionFactoryLocator gridProjectionFactoryLocator() {
      GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
      registry.addGridProjectionFactory(new DefaultGridProjectionFactory());
      registry.addGridProjectionFactory(new TestGridProjectionFactory());
      return registry;
    }
View Full Code Here

Examples of org.springframework.yarn.am.grid.support.GridProjectionFactoryRegistry

  protected static ManagedContainerClusterAppmaster createManagedAppmaster() throws Exception {
    ManagedContainerClusterAppmaster appmaster = new ManagedContainerClusterAppmaster();
    appmaster.setConfiguration(new Configuration());

    GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
    registry.addGridProjectionFactory(new DefaultGridProjectionFactory());
    appmaster.setGridProjectionFactoryLocator(registry);
    appmaster.setProjectionDataRegistry(new ProjectionDataRegistry(null));

//    appmaster.setGridProjectionFactory(new DefaultGridProjectionFactory());
    TestUtils.callMethod("onInit", appmaster);
View Full Code Here

Examples of org.springframework.yarn.am.grid.support.GridProjectionFactoryRegistry

    appmaster.setTaskExecutor(new SyncTaskExecutor());
    appmaster.setConfiguration(new Configuration());
    appmaster.setAllocator(allocator);
    appmaster.setLauncher(launcher);

    GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
    registry.addGridProjectionFactory(new DefaultGridProjectionFactory());
    appmaster.setGridProjectionFactoryLocator(registry);
    appmaster.setProjectionDataRegistry(new ProjectionDataRegistry(null));

//    appmaster.setGridProjectionFactory(new DefaultGridProjectionFactory());
    TestUtils.callMethod("onInit", appmaster);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.