Package org.springframework.yarn.am.grid.support

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


      return new SyncTaskExecutor();
    }

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

      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

  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

    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

Related Classes of org.springframework.yarn.am.grid.support.GridProjectionFactoryRegistry

Copyright © 2018 www.massapicom. 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.