protected void fetchData() throws YarnException, IOException, InterruptedException { reqAppStates = EnumSet.noneOf(YarnApplicationState.class); String reqStateString = $(APP_STATE); if (reqStateString != null && !reqStateString.isEmpty()) { String[] appStateStrings = reqStateString.split(","); callerUGI = getCallerUGI(); final GetApplicationsRequest request = GetApplicationsRequest.newInstance(reqAppStates); String appsNumStr = $(APPS_NUM); if (appsNumStr != null && !appsNumStr.isEmpty()) { long appsNum = Long.parseLong(appsNumStr);
@Override public void render(Block html) { setTitle("Applications"); try { fetchData(); } catch( Exception e) { String message = "Failed to read the applications."; LOG.error(message, e); html.p()._(message)._(); return; } renderData(html); }
appsTableData .append("[\"<a href='") .append(url("app", app.getAppId())) .append("'>") .append(app.getAppId())
appsTableData .append("[\"<a href='") .append(url("app", app.getAppId())) .append("'>") .append(app.getAppId())
@Override public void render(Block html) { setTitle("Applications"); try { fetchData(); } catch( Exception e) { String message = "Failed to read the applications."; LOG.error(message, e); html.p()._(message)._(); return; } renderData(html); }
protected void fetchData() throws YarnException, IOException, InterruptedException { reqAppStates = EnumSet.noneOf(YarnApplicationState.class); String reqStateString = $(APP_STATE); if (reqStateString != null && !reqStateString.isEmpty()) { String[] appStateStrings = reqStateString.split(","); callerUGI = getCallerUGI(); final GetApplicationsRequest request = GetApplicationsRequest.newInstance(reqAppStates); String appsNumStr = $(APPS_NUM); if (appsNumStr != null && !appsNumStr.isEmpty()) { long appsNum = Long.parseLong(appsNumStr);
appsTableData .append("[\"<a href='") .append(url("app", app.getAppId())) .append("'>") .append(app.getAppId())
@Override public void render(Block html) { setTitle("Applications"); try { fetchData(); } catch( Exception e) { String message = "Failed to read the applications."; LOG.error(message, e); html.p()._(message)._(); return; } renderData(html); }
protected void fetchData() throws YarnException, IOException, InterruptedException { reqAppStates = EnumSet.noneOf(YarnApplicationState.class); String reqStateString = $(APP_STATE); if (reqStateString != null && !reqStateString.isEmpty()) { String[] appStateStrings = reqStateString.split(","); callerUGI = getCallerUGI(); final GetApplicationsRequest request = GetApplicationsRequest.newInstance(reqAppStates); String appsNumStr = $(APPS_NUM); if (appsNumStr != null && !appsNumStr.isEmpty()) { long appsNum = Long.parseLong(appsNumStr); String appStartedTimeBegainStr = $(APP_START_TIME_BEGIN); long appStartedTimeBegain = 0; if (appStartedTimeBegainStr != null && !appStartedTimeBegainStr.isEmpty()) { String appStartedTimeEndStr = $(APP_START_TIME_END); long appStartedTimeEnd = Long.MAX_VALUE; if (appStartedTimeEndStr != null && !appStartedTimeEndStr.isEmpty()) {