@Test @Ignore public void testApplicationReport() throws IOException, YarnException { ApplicationId appId = null; appId = ApplicationId.newInstance(0, 1); writeApplicationStartData(appId); writeApplicationFinishData(appId); ApplicationAttemptId appAttemptId = ApplicationAttemptId.newInstance(appId, 1); writeApplicationAttemptStartData(appAttemptId); writeApplicationAttemptFinishData(appAttemptId); ApplicationReport appReport = applicationHistoryManagerImpl.getApplication(appId); Assert.assertNotNull(appReport); Assert.assertEquals(appId, appReport.getApplicationId()); Assert.assertEquals(appAttemptId, appReport.getCurrentApplicationAttemptId()); Assert.assertEquals(appAttemptId.toString(), appReport.getHost()); Assert.assertEquals("test type", appReport.getApplicationType().toString()); Assert.assertEquals("test queue", appReport.getQueue().toString()); }
@Override public ApplicationReport getApplication(ApplicationId appId) throws IOException { return convertToApplicationReport(historyStore.getApplication(appId)); }
ApplicationHistoryManagerImpl extends AbstractService implements
    ApplicationHistoryManager { @Override public ApplicationReport getApplication(ApplicationId appId) throws IOException { return convertToApplicationReport(historyStore.getApplication(appId)); } }
ApplicationHistoryManagerImpl extends AbstractService implements
    ApplicationHistoryManager { @Override public ApplicationReport getApplication(ApplicationId appId) throws IOException { return convertToApplicationReport(historyStore.getApplication(appId)); } ApplicationHistoryManagerImpl(); }
ApplicationHistoryManagerImpl extends AbstractService implements
    ApplicationHistoryManager { @Override public ApplicationReport getApplication(ApplicationId appId) throws IOException { return convertToApplicationReport(historyStore.getApplication(appId)); } ApplicationHistoryManagerImpl(); @Override ContainerReport getAMContainer(ApplicationAttemptId appAttemptId); @Override Map<ApplicationId, ApplicationReport> getApplications(long appsNum); @Override ApplicationReport getApplication(ApplicationId appId); @Override ApplicationAttemptReport getApplicationAttempt(
      ApplicationAttemptId appAttemptId); @Override Map<ApplicationAttemptId, ApplicationAttemptReport> getApplicationAttempts(ApplicationId appId); @Override ContainerReport getContainer(ContainerId containerId); @Override Map<ContainerId, ContainerReport> getContainers(
      ApplicationAttemptId appAttemptId); @Private @VisibleForTesting ApplicationHistoryStore getHistoryStore(); }
ApplicationHistoryManagerImpl extends AbstractService implements
    ApplicationHistoryManager { @Override public ApplicationReport getApplication(ApplicationId appId) throws IOException { return convertToApplicationReport(historyStore.getApplication(appId)); } ApplicationHistoryManagerImpl(); @Override ContainerReport getAMContainer(ApplicationAttemptId appAttemptId); @Override Map<ApplicationId, ApplicationReport> getApplications(long appsNum); @Override ApplicationReport getApplication(ApplicationId appId); @Override ApplicationAttemptReport getApplicationAttempt(
      ApplicationAttemptId appAttemptId); @Override Map<ApplicationAttemptId, ApplicationAttemptReport> getApplicationAttempts(ApplicationId appId); @Override ContainerReport getContainer(ContainerId containerId); @Override Map<ContainerId, ContainerReport> getContainers(
      ApplicationAttemptId appAttemptId); @Private @VisibleForTesting ApplicationHistoryStore getHistoryStore();  }