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

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


public class GridTests {

  @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


    log.info("Setting projectionDataRegistry=" + projectionDataRegistry);
    this.projectionDataRegistry = projectionDataRegistry;
  }

  protected Grid doCreateGrid() {
    return new DefaultGrid();
  }
View Full Code Here

TOP

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

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.