.__("var appsTableData=" + appsTableData).__(); tbody.__().__();
__("var tasksTableData=" + tasksTableData).__(); tbody.__().__();
.__("var attemptsTableData=" + attemptsTableData).__(); tbody.__().__();
.getAggegatedReleasedContainers())) .td(healthInfo.getAggregateFulFilledReservationsCount().toString()) .td(healthInfo.getAggregatePreemptionCount().toString()).__().__().__(); div.h4("Last scheduler run"); tbody = .td( healthInfo.getReleaseCount().toString() + " - " + healthInfo.getResourcesReleased().toString()).__().__().__(); Map<String, SchedulerHealth.DetailedInformation> info = new HashMap<>(); info.put("Allocation", healthInfo.getLastAllocationDetails()); .td(queue).__().__().__();
html.script().$type("text/javascript") .__("var resourceRequestsTableData=" + resourceRequestTableData).__(); tbody.__().__(); div.__();
.td(info.getVersion()).__(); tbody.__().__();
__(). __(). __(); } catch(IOException e) { LOG.error("Error while reading "+confPath, e);
tbody(). tr().td("c1r1").td("c2r1").__(). tr().td("c1r2").td("c2r2").__().__().__(). h2("Nested tables"). div(_INFO_WRAP). tbody(). tr().td("subc1r1").td("subc2r1").__(). tr().td("subc1r2").td("subc2r2").__().__().__().__().__(). tr().td("r2"). // ditto td().$class(C_TABLE). tr().td("subc1r1").td("subc2r1").__(). tr().td("subc1r2").td("subc2r2").__(). __().__().__().__().__().__().__().__().__();
td(String.valueOf(job.getReducesCompleted())).__(); tbody.__().__();
.td(i <= 1 ? "" : String.valueOf(attemptMetrics.getLocalityStatistics()[i][2])).__(); table.__(); div.__();
tbody.__().__().__();
table.__().__();
__(nav()).__(). td().$class("content"). __(content()).__().__().__().__().__();
.__().__(); containersListBody.__();
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html.body() .table("#containers") .thead() .tr() .td().__("ContainerId").__() .td().__("ExecutionType").__() .td().__("ContainerState").__() .td().__("logs").__() .__() .__().tbody(); for (Entry<ContainerId, Container> entry : this.nmContext .getContainers().entrySet()) { ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue()); tableBody .tr() .td().a(url("container", info.getId()), info.getId()) .__() .td().__(info.getExecutionType()).__() .td().__(info.getState()).__() .td() .a(url(info.getShortLogLink()), "logs").__() .__(); } tableBody.__().__().__(); }
@Override protected void render(Block html) { TBODY<TABLE<BODY<Hamlet>>> tableBody = html .body() .table("#applications") .thead() .tr() .td().__("ApplicationId").__() .td().__("ApplicationState").__() .__() .__() .tbody(); for (Entry<ApplicationId, Application> entry : this.nmContext .getApplications().entrySet()) { AppInfo info = new AppInfo(entry.getValue()); tableBody .tr() .td().a(url("application", info.getId()), info.getId()).__() .td().__(info.getState()) .__() .__(); } tableBody.__().__().__(); } }