String labelFilter = $(NODE_LABEL, CommonNodeLabelsManager.ANY).trim(); Hamlet.TR<Hamlet.THEAD<TABLE<Hamlet>>> trbody = html.table("#nodes").thead().tr() .th(".nodelabels", "Node Labels") .th(".rack", "Rack") trbody.th(".nodeManagerVersion", "Version").__().__().tbody(); html.script().$type("text/javascript") .__("var nodeTableData=" + nodeTableData).__(); tbody.__().__();
tr(). th(amString). __(). tr(). th(_TH, "Attempt Number"). th(_TH, "Start Time"). table.tr(). td(String.valueOf(attempt.getAttemptId())). td(new Date(attempt.getStartTime()).toString()). table.__(); div.__(); tr(). th(_TH, "Task Type"). th(_TH, "Progress"). th(_TH, "Running"). th(_TH, "Complete").__(). tr(_ODD). th("Map"). td(). td().a(url("tasks", jid, "m", "RUNNING"), String.valueOf(jinfo.getMapsRunning())).__(). td().a(url("tasks", jid, "m", "COMPLETED"), String.valueOf(jinfo.getMapsCompleted())).__().__(). tr(_EVEN). th("Reduce"). td().
thead().$class("ui-widget-header"). tr(). th().$class("ui-state-default").__("Apps Submitted").__(). __(). __(). tbody().$class("ui-widget-content"). tr(). td(String.valueOf(clusterMetrics.getAppsSubmitted())). td(String.valueOf(clusterMetrics.getReservedVirtualCores())). __(). __().__(); thead().$class("ui-widget-header"). tr(). th().$class("ui-state-default").__("Active Nodes").__(). __(). __(). tbody().$class("ui-widget-content"). tr(). td().a(url("nodes"), String.valueOf(clusterMetrics.getActiveNodes())).__(). td().a(url("nodes/shutdown"), String.valueOf(clusterMetrics.getShutdownNodes())).__(). __(). __().__(); div.h3("User Metrics for " + user).
@Override protected void renderData(Block html) { TBODY<TABLE<Hamlet>> tbody = html.table("#apps").thead().tr().th(".id", "ID").th(".user", "User") .th(".name", "Name").th(".type", "Application Type") .th(".queue", "Queue").th(".priority", "Application Priority") .th(".ui", "Tracking UI") .th(".blacklisted", "Blacklisted Nodes").__() .__().tbody(); .__("var appsTableData=" + appsTableData).__(); tbody.__().__();
TBODY<TABLE<Hamlet>> tbody = html.table("#rms").thead().tr() .th(".id", "SubCluster") .th(".submittedA", "Applications Submitted*") .th(".rebootedN", "Rebooted Nodes") .th(".totalN", "Total Nodes") .__().__().tbody(); tbody.__().__().div() .p().__("*The application counts are local per subcluster").__().__(); } else {
div_description.table("#LogAggregationStatusDecription"); table_description. tr(). th(_TH, "Log Aggregation Status"). th(_TH, "Description"). __(); table_description.tr().td(LogAggregationStatus.DISABLED.name()) .td("Log Aggregation is Disabled.").__(); table_description.tr().td(LogAggregationStatus.NOT_START.name()) .td("Log Aggregation does not Start.").__(); table_description.tr().td(LogAggregationStatus.RUNNING.name()) .td("Log Aggregation is Running.").__(); table_description.tr().td(LogAggregationStatus.RUNNING_WITH_FAILURE.name()) .td("Log Aggregation is Running, but has failures " + "in previous cycles").__(); table_description.tr().td(LogAggregationStatus.SUCCEEDED.name()) .td("Log Aggregation is Succeeded. All of the logs have been " + "aggregated successfully.").__(); table_description.tr().td(LogAggregationStatus.FAILED.name()) .td("Log Aggregation is Failed. At least one of the logs " + "have not been aggregated.").__(); table_description.tr().td(LogAggregationStatus.TIME_OUT.name()) .td("The application is finished, but the log aggregation status is " + "not updated for a long time. Not sure whether the log aggregation " + "is finished or not.").__(); table_description.__(); div_description.__(); YarnConfiguration.DEFAULT_RM_MAX_LOG_AGGREGATION_DIAGNOSTICS_IN_MEMORY);
@Override public void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html. table("#apps"). thead(). tr(). th(".id", "ID"). th(".progress", "Progress"). th(".ui", "Tracking UI").__().__(). tbody(); Collection<YarnApplicationState> reqAppStates = null; String reqStateString = $(APP_STATE); __("var appsTableData=" + appsTableData).__(); tbody.__().__();
div.h4("Aggregate scheduler counts"); TBODY<TABLE<DIV<Hamlet>>> tbody = div.table("#lastrun").thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("Total Container Allocations(count)") .__().th().$class("ui-state-default") .__("Total Fulfilled Reservations(count)").__().th() .$class("ui-state-default").__("Total Container Preemptions(count)") .__().__().__().tbody(); tbody .$class("ui-widget-content") .getAggegatedReleasedContainers())) .td(healthInfo.getAggregateFulFilledReservationsCount().toString()) .td(healthInfo.getAggregatePreemptionCount().toString()).__().__().__(); div.h4("Last scheduler run"); tbody = div.table("#lastrun").thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("Time").__().th() .$class("ui-state-default").__("Allocations(count - resources)").__() .th().$class("ui-state-default").__("Reservations(count - resources)") .__().th().$class("ui-state-default").__("Releases(count - resources)") .__().__().__().tbody(); tbody .$class("ui-widget-content") .td( healthInfo.getReleaseCount().toString() + " - " + healthInfo.getResourcesReleased().toString()).__().__().__();
thead(). tr(). th(_TH, "key"). __(). __(). tbody(); for (ConfEntryInfo entry : info.getProperties()) { StringBuffer buffer = new StringBuffer(); tfoot(). tr(). th().input("search_init").$type(InputType.text).$name("key").$value("key").__().__(). __(). __(). __(); } catch(IOException e) { LOG.error("Error while reading "+confPath, e);
div(_INFO_WRAP). table("#counters"). thead(). tr(). th(".group.ui-state-default", "Counter Group"). th(".ui-state-default", "Counters").__().__(). tbody(); for (CounterGroup g : total) { CounterGroup mg = map == null ? null : map.getGroup(g.getName()); __(fixGroupDisplayName(g.getDisplayName())).__(). td().$class(C_TABLE). table(".dt-counters").$id(job.getID()+"."+g.getName()). thead(). tr().th(".name", "Name"); tbody(); for (Counter counter : g) { group.__().__().__().__(); tbody.__().__().__();
.h3("Total Outstanding Resource Requests: " + getTotalResource(resourceRequests)) .table("#resourceRequests").thead().tr().th(".priority", "Priority") .th(".allocationRequestId", "AllocationRequestId") .th(".resource", "ResourceName").th(".capacity", "Capability") .th(".executiontype", "ExecutionType") .th(".allocationTags", "AllocationTags") .th(".placementConstraint", "PlacementConstraint").__().__().tbody(); html.script().$type("text/javascript") .__("var resourceRequestsTableData=" + resourceRequestTableData).__(); tbody.__().__(); div.__();
html.table("#attempts").thead().tr().th(".id", "Attempt ID") .th(".started", "Started").th(".node", "Node").th(".logs", "Logs") .th(".appBlacklistednodes", "Nodes blacklisted by the application", "Nodes blacklisted by the app") .th(".rmBlacklistednodes", "Nodes blacklisted by the RM for the" + " app", "Nodes blacklisted by the system").__().__().tbody(); .__("var attemptsTableData=" + attemptsTableData).__(); tbody.__().__();
h2("Default table init"). table("#t1"). thead(). tr().th("Column1").th("Column2").__().__(). tbody(). tr().td("c1r1").td("c2r1").__(). tr().td("c1r2").td("c2r2").__().__().__(). h2("Nested tables"). div(_INFO_WRAP). table("#t2"). thead(). tr().th(_TH, "Column1").th(_TH, "Column2").__().__(). tbody(). tr().td("r1"). // th wouldn't work as of dt 1.7.5 td().$class(C_TABLE). table("#t3"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). tr().td("subc1r1").td("subc2r1").__(). tr().td("subc1r2").td("subc2r2").__().__().__().__().__(). tr().td("r2"). // ditto td().$class(C_TABLE). table("#t4"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). tr().td("subc1r1").td("subc2r1").__(). tr().td("subc1r2").td("subc2r2").__().
@Override protected void render(Block html) { TBODY<TABLE<Hamlet>> tbody = html.table("#userinfo").thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("User Name").__().th() .$class("ui-state-default").__("Max Resource").__().th() .$class("ui-state-default").__("Schedulable Apps").__().th() .$class("ui-state-default").__("Non-Schedulable Apps").__().__().__() .tbody(); tbody.__().__();