private FetchedAppReport getApplicationReport(ApplicationId id) throws IOException, YarnException { return ((AppReportFetcher) getServletContext() .getAttribute(WebAppProxy.FETCHER_ATTRIBUTE)).getApplicationReport(id); }
private FetchedAppReport getApplicationReport(ApplicationId id) throws IOException, YarnException { return ((AppReportFetcher) getServletContext() .getAttribute(WebAppProxy.FETCHER_ATTRIBUTE)).getApplicationReport(id); }
private FetchedAppReport getApplicationReport(ApplicationId id) throws IOException, YarnException { return ((AppReportFetcher) getServletContext() .getAttribute(WebAppProxy.FETCHER_ATTRIBUTE)).getApplicationReport(id); }
private FetchedAppReport getApplicationReport(ApplicationId id) throws IOException, YarnException { return ((AppReportFetcher) getServletContext() .getAttribute(WebAppProxy.FETCHER_ATTRIBUTE)).getApplicationReport(id); }
public void testHelper(boolean isAHSEnabled) throws YarnException, IOException { conf.setBoolean(YarnConfiguration.APPLICATION_HISTORY_ENABLED, isAHSEnabled); appManager = Mockito.mock(ApplicationClientProtocol.class); Mockito.when(appManager .getApplicationReport(Mockito.any(GetApplicationReportRequest.class))) .thenThrow(new ApplicationNotFoundException(appNotFoundExceptionMsg)); fetcher = new AppReportFetcherForTest(conf, appManager); ApplicationId appId = ApplicationId.newInstance(0,0); fetcher.getApplicationReport(appId); }
public void testHelper(boolean isAHSEnabled) throws YarnException, IOException { conf.setBoolean(YarnConfiguration.APPLICATION_HISTORY_ENABLED, isAHSEnabled); appManager = Mockito.mock(ApplicationClientProtocol.class); Mockito.when(appManager .getApplicationReport(Mockito.any(GetApplicationReportRequest.class))) .thenThrow(new ApplicationNotFoundException(appNotFoundExceptionMsg)); fetcher = new AppReportFetcherForTest(conf, appManager); ApplicationId appId = ApplicationId.newInstance(0,0); fetcher.getApplicationReport(appId); }