Package org.apache.hadoop.yarn.server.applicationhistoryservice

Examples of org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManager


    store = new MemoryApplicationHistoryStore();
  }

  @Test
  public void testAppControllerIndex() throws Exception {
    ApplicationHistoryManager ahManager = mock(ApplicationHistoryManager.class);
    Injector injector =
        WebAppTests.createMockInjector(ApplicationHistoryManager.class,
          ahManager);
    AHSController controller = injector.getInstance(AHSController.class);
    controller.index();
View Full Code Here


    WebAppTests.flushOutput(injector);
  }

  ApplicationHistoryManager mockApplicationHistoryManager(int numApps,
      int numAppAttempts, int numContainers) throws Exception {
    ApplicationHistoryManager ahManager =
        new MockApplicationHistoryManagerImpl(store);
    for (int i = 1; i <= numApps; ++i) {
      ApplicationId appId = ApplicationId.newInstance(0, i);
      writeApplicationStartData(appId);
      for (int j = 1; j <= numAppAttempts; ++j) {
View Full Code Here

  private ApplicationHistoryManager mockApplicationHistoryManager()
      throws Exception {
    ApplicationHistoryStore store = new MemoryApplicationHistoryStore();
    TestAHSWebApp testAHSWebApp = new TestAHSWebApp();
    testAHSWebApp.setApplicationHistoryStore(store);
    ApplicationHistoryManager ahManager =
        testAHSWebApp.mockApplicationHistoryManager(5, 5, 5);
    return ahManager;
  }
View Full Code Here

    store = new MemoryApplicationHistoryStore();
  }

  @Test
  public void testAppControllerIndex() throws Exception {
    ApplicationHistoryManager ahManager = mock(ApplicationHistoryManager.class);
    Injector injector =
        WebAppTests.createMockInjector(ApplicationHistoryManager.class,
          ahManager);
    AHSController controller = injector.getInstance(AHSController.class);
    controller.index();
View Full Code Here

    WebAppTests.flushOutput(injector);
  }

  ApplicationHistoryManager mockApplicationHistoryManager(int numApps,
      int numAppAttempts, int numContainers) throws Exception {
    ApplicationHistoryManager ahManager =
        new MockApplicationHistoryManagerImpl(store);
    for (int i = 1; i <= numApps; ++i) {
      ApplicationId appId = ApplicationId.newInstance(0, i);
      writeApplicationStartData(appId);
      for (int j = 1; j <= numAppAttempts; ++j) {
View Full Code Here

  private ApplicationHistoryManager mockApplicationHistoryManager()
      throws Exception {
    ApplicationHistoryStore store = new MemoryApplicationHistoryStore();
    TestAHSWebApp testAHSWebApp = new TestAHSWebApp();
    testAHSWebApp.setApplicationHistoryStore(store);
    ApplicationHistoryManager ahManager =
        testAHSWebApp.mockApplicationHistoryManager(5, 5, 5);
    return ahManager;
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManager

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.