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

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


  @Test
  public void testSimpleOperations() {
    DefaultGrid grid = new DefaultGrid();
    ContainerId id = MockUtils.getMockContainerId(MockUtils.getMockApplicationAttemptId(0, 0), 0);
    Container container = MockUtils.getMockContainer(id, null, null, null);
    DefaultGridMember member = new DefaultGridMember(container);
    grid.addMember(member);
    assertThat(grid.getMembers().size(), is(1));
  }
View Full Code Here


  @Override
  protected void onContainerAllocated(Container container) {
    if (getMonitor() instanceof ContainerAware) {
      ((ContainerAware)getMonitor()).onContainer(Arrays.asList(container));
    }
    DefaultGridMember member = new DefaultGridMember(container);
    if (grid.addMember(member)) {
      ContainerCluster cluster = findContainerClusterByContainer(container);
      if (cluster != null) {
        getLauncher().launchContainer(container, onContainerLaunchCommands(container, cluster, getCommands(clusterIdToRef.get(cluster.getId()))));
      } else {
View Full Code Here

TOP

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

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.