.th(".id", "ID") .th(".user", "User") .th(".name", "Name") .th(".type", "Application Type") .th(".queue", "Queue") .th(".priority", "Application Priority") .th(".starttime", "StartTime") .th(".finishtime", "FinishTime") .th(".state", "State") .th(".finalstatus", "FinalStatus") .th(".progress", "Progress") .th(".ui", "Tracking UI") .__().__().tbody();
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();
table_description. tr(). th(_TH, "Log Aggregation Status"). th(_TH, "Description"). __(); table_description.tr().td(LogAggregationStatus.DISABLED.name()) table .tr() .th(_TH, "NodeId") .th(_TH, "Log Aggregation Status") .th(_TH, "Last " + maxLogAggregationDiagnosticsInMemory + " Diagnostic Messages") .th(_TH, "Last " + maxLogAggregationDiagnosticsInMemory + " Failure Messages").__();
thead(). tr(). th(".id", "ID"). th(".user", "User"). th(".name", "Name"). th(".type", "Application Type"). th(".queue", "Queue"). th(".fairshare", "Fair Share"). th(".starttime", "StartTime"). th(".launchTime", "LaunchTime"). th(".finishtime", "FinishTime"). th(".state", "State"). th(".finalstatus", "FinalStatus"). th(".runningcontainer", "Running Containers"). th(".allocatedCpu", "Allocated CPU VCores"). th(".allocatedMemory", "Allocated Memory MB"). th(".reservedCpu", "Reserved CPU VCores"). th(".reservedMemory", "Reserved Memory MB"). th(".progress", "Progress"). th(".ui", "Tracking UI").__().__(). tbody(); Collection<YarnApplicationState> reqAppStates = null;
thead(). tr(). th(".group.ui-state-default", "Counter Group"). th(".ui-state-default", "Counters").__().__(). tbody(); for (CounterGroup g : total) { th().$title(g.getName()).$class("ui-state-default"). __(fixGroupDisplayName(g.getDisplayName())).__(). td().$class(C_TABLE). table(".dt-counters").$id(job.getID()+"."+g.getName()). thead(). tr().th(".name", "Name"); groupHeadRow.th("Map").th("Reduce"); th(map == null ? "Value" : "Total").__().__(). tbody(); for (Counter counter : g) {
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 Container Releases(count)").__().th() .$class("ui-state-default") .__("Total Fulfilled Reservations(count)").__().th() .$class("ui-state-default").__("Total Container Preemptions(count)") .__().__().__().tbody(); 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 div.h4("Last " + entry.getKey()); tbody = div.table(table).thead().$class("ui-widget-header").tr().th() .$class("ui-state-default").__("Time").__().th() .$class("ui-state-default").__("Container Id").__().th() .$class("ui-state-default").__("Node Id").__().th() .$class("ui-state-default").__("Queue").__().__().__().tbody(); SchedulerHealth.DetailedInformation di = entry.getValue();
.h3("Total Outstanding Resource Requests: " + getTotalResource(resourceRequests)) .table("#resourceRequests").thead().tr().th(".priority", "Priority") .th(".allocationRequestId", "AllocationRequestId") .th(".resource", "ResourceName").th(".capacity", "Capability") .th(".containers", "NumContainers") .th(".relaxlocality", "RelaxLocality") .th(".labelexpression", "NodeLabelExpression") .th(".executiontype", "ExecutionType") .th(".allocationTags", "AllocationTags") .th(".placementConstraint", "PlacementConstraint").__().__().tbody();
.th(".nodelabels", "Node Labels") .th(".rack", "Rack") .th(".state", "Node State") .th(".nodeaddress", "Node Address") .th(".nodehttpaddress", "Node HTTP Address") .th(".lastHealthUpdate", "Last health-update") .th(".healthReport", "Health-report") .th(".containers", "Containers") .th(".mem", "Mem Used") .th(".mem", "Mem Avail") .th(".vcores", "VCores Used") .th(".vcores", "VCores Avail") .th(".nodeManagerVersion", "Version") .__().__().tbody();
thead(). tr(). th(_TH, "key"). th(_TH, "value"). th(_TH, "source chain"). __(). __(). tfoot(). tr(). th().input("search_init").$type(InputType.text).$name("key").$value("key").__().__(). th().input("search_init").$type(InputType.text).$name("value").$value("value").__().__(). th().input("search_init").$type(InputType.text).$name("source chain").$value("source chain").__().__(). __(). __().
@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").__("Weight").__().th() .$class("ui-state-default").__("Used Resource").__().th() .$class("ui-state-default").__("Max AM Resource").__().th() .$class("ui-state-default").__("Used AM Resource").__().th() .$class("ui-state-default").__("Schedulable Apps").__().th() .$class("ui-state-default").__("Non-Schedulable Apps").__().__().__() .tbody();
table("#t1"). thead(). tr().th("Column1").th("Column2").__().__(). tbody(). tr().td("c1r1").td("c2r1").__(). table("#t2"). thead(). tr().th(_TH, "Column1").th(_TH, "Column2").__().__(). tbody(). tr().td("r1"). // th wouldn't work as of dt 1.7.5 table("#t3"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). tr().td("subc1r1").td("subc2r1").__(). table("#t4"). thead(). tr().th("SubColumn1").th("SubColumn2").__().__(). tbody(). tr().td("subc1r1").td("subc2r1").__().
public TR<T> th(String selector, String title, String cdata) { return setSelector(th(), selector).$title(title).__(cdata).__(); }
@Override public TR<T> th(String selector, String cdata) { return setSelector(th(), selector).__(cdata).__(); }
@Override public TR<T> th(String cdata) { return th().__(cdata).__(); }