public AppInfo getApp(HttpServletRequest req, HttpServletResponse res, String appId) { UserGroupInformation callerUGI = getUser(req); final ApplicationId id = parseApplicationId(appId); ApplicationReport app = null; try { if (callerUGI == null) { GetApplicationReportRequest request = GetApplicationReportRequest.newInstance(id); app = appBaseProt.getApplicationReport(request).getApplicationReport(); } else { app = callerUGI.doAs( new PrivilegedExceptionAction<ApplicationReport> () { @Override public ApplicationReport run() throws Exception { GetApplicationReportRequest request = GetApplicationReportRequest.newInstance(id); return appBaseProt.getApplicationReport(request).getApplicationReport(); } }); } } catch (Exception e) { rewrapAndThrowException(e); } if (app == null) { throw new NotFoundException("app with id: " + appId + " not found"); } return new AppInfo(app); }
public AppInfo getApp(HttpServletRequest req, HttpServletResponse res, String appId) { UserGroupInformation callerUGI = getUser(req); final ApplicationId id = parseApplicationId(appId); ApplicationReport app = null; try { if (callerUGI == null) { GetApplicationReportRequest request = GetApplicationReportRequest.newInstance(id); app = appBaseProt.getApplicationReport(request).getApplicationReport(); } else { app = callerUGI.doAs( new PrivilegedExceptionAction<ApplicationReport> () { @Override public ApplicationReport run() throws Exception { GetApplicationReportRequest request = GetApplicationReportRequest.newInstance(id); return appBaseProt.getApplicationReport(request).getApplicationReport(); } }); } } catch (Exception e) { rewrapAndThrowException(e); } if (app == null) { throw new NotFoundException("app with id: " + appId + " not found"); } return new AppInfo(app); }
public AppInfo getApp(HttpServletRequest req, HttpServletResponse res, String appId) { UserGroupInformation callerUGI = getUser(req); final ApplicationId id = parseApplicationId(appId); ApplicationReport app = null; try { if (callerUGI == null) { GetApplicationReportRequest request = GetApplicationReportRequest.newInstance(id); app = appBaseProt.getApplicationReport(request).getApplicationReport(); } else { app = callerUGI.doAs( new PrivilegedExceptionAction<ApplicationReport> () { @Override public ApplicationReport run() throws Exception { GetApplicationReportRequest request = GetApplicationReportRequest.newInstance(id); return appBaseProt.getApplicationReport(request).getApplicationReport(); } }); } } catch (Exception e) { rewrapAndThrowException(e); } if (app == null) { throw new NotFoundException("app with id: " + appId + " not found"); } return new AppInfo(app); }
String startedEnd, String finishBegin, String finishEnd, Set<String> applicationTypes) { UserGroupInformation callerUGI = getUser(req); boolean checkEnd = false; boolean checkAppTypes = false;
String startedEnd, String finishBegin, String finishEnd, Set<String> applicationTypes) { UserGroupInformation callerUGI = getUser(req); boolean checkStart = false; boolean checkEnd = false;
String startedEnd, String finishBegin, String finishEnd, Set<String> applicationTypes) { UserGroupInformation callerUGI = getUser(req); boolean checkStart = false; boolean checkEnd = false;
public AppAttemptsInfo getAppAttempts(HttpServletRequest req, HttpServletResponse res, String appId) { UserGroupInformation callerUGI = getUser(req); final ApplicationId id = parseApplicationId(appId); Collection<ApplicationAttemptReport> appAttemptReports = null;
public AppAttemptsInfo getAppAttempts(HttpServletRequest req, HttpServletResponse res, String appId) { UserGroupInformation callerUGI = getUser(req); final ApplicationId id = parseApplicationId(appId); Collection<ApplicationAttemptReport> appAttemptReports = null;
public AppAttemptsInfo getAppAttempts(HttpServletRequest req, HttpServletResponse res, String appId) { UserGroupInformation callerUGI = getUser(req); final ApplicationId id = parseApplicationId(appId); Collection<ApplicationAttemptReport> appAttemptReports = null;
public AppAttemptInfo getAppAttempt(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); final ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public AppAttemptInfo getAppAttempt(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); final ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public AppAttemptInfo getAppAttempt(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); final ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public ContainersInfo getContainers(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); final ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public ContainersInfo getContainers(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); final ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public ContainersInfo getContainers(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); final ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public ContainerInfo getContainer(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId, String containerId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public ContainerInfo getContainer(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId, String containerId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);
public ContainerInfo getContainer(HttpServletRequest req, HttpServletResponse res, String appId, String appAttemptId, String containerId) { UserGroupInformation callerUGI = getUser(req); ApplicationId aid = parseApplicationId(appId); ApplicationAttemptId aaid = parseApplicationAttemptId(appAttemptId);