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

Examples of org.springframework.yarn.am.grid.support.DefaultGrid.addMember()


  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

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.