protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); Set(DatatablesId, "jobs"); Set(JQueryUI.InitID(Datatables, "jobs"), JobsTableInit()); SetTableStyles(html, "jobs"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { string redirectUrl = $(RedirectUrl); if (redirectUrl == null || redirectUrl.IsEmpty()) { Set(Title, StringHelper.Join("Logs for ", $(YarnWebParams.ContainerId))); } else { if (redirectUrl.Equals("false")) { Set(Title, StringHelper.Join("Failed redirect for ", $(YarnWebParams.ContainerId) )); } else { //Error getting redirect url. Fall through. Set(Title, StringHelper.Join("Redirecting to log server for ", $(YarnWebParams.ContainerId ))); html.Meta_http("refresh", "1; url=" + redirectUrl); } } Set(JQueryUI.AccordionId, "nav"); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:0}"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); SetTitle("Applications running on this node"); Set(JQueryUI.DatatablesId, "applications"); Set(JQueryUI.InitID(JQueryUI.Datatables, "applications"), AppsTableInit()); SetTableStyles(html, "applications"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:3}"); Set(JQueryUI.DatatablesId, "attempts"); Set(JQueryUI.InitID(JQueryUI.Datatables, "attempts"), AttemptsTableInit()); SetTableStyles(html, "attempts"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); SetTitle("All containers running on this node"); Set(JQueryUI.DatatablesId, "containers"); Set(JQueryUI.InitID(JQueryUI.Datatables, "containers"), ContainersTableInit()); SetTableStyles(html, "containers"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { string jobID = $(AMParams.JobId); Set(Title, jobID.IsEmpty() ? "Bad request: missing job ID" : StringHelper.Join("MapReduce Job " , $(AMParams.JobId))); CommonPreHead(html); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:2}"); }
/* * (non-Javadoc) * @see org.apache.hadoop.mapreduce.v2.hs.webapp.HsView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) */ protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); Set(JQueryUI.DatatablesId, "tasks"); Set(JQueryUI.DatatablesSelector, ".dt-tasks"); Set(JQueryUI.InitSelector(JQueryUI.Datatables), TasksTableInit()); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:1}"); Set(JQueryUI.InitID(JQueryUI.Datatables, "tasks"), TasksTableInit()); Set(JQueryUI.PostInitID(JQueryUI.Datatables, "tasks"), JobsPostTableInit()); SetTableStyles(html, "tasks"); }
/* * (non-Javadoc) * @see org.apache.hadoop.mapreduce.v2.hs.webapp.HsView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) */ protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); //override the nav config from commonPReHead Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:2}"); //Set up the java script and CSS for the attempts table Set(JQueryUI.DatatablesId, "attempts"); Set(JQueryUI.InitID(JQueryUI.Datatables, "attempts"), AttemptsTableInit()); Set(JQueryUI.PostInitID(JQueryUI.Datatables, "attempts"), AttemptsPostTableInit() ); SetTableStyles(html, "attempts"); }
// Do NOT rename/refactor this to AHSView as it will wreak havoc // on Mac OS HFS // direct table rendering // inline js array protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); Set(JQueryUI.DatatablesId, "apps"); Set(JQueryUI.InitID(JQueryUI.Datatables, "apps"), WebPageUtils.AppsTableInit()); SetTableStyles(html, "apps", ".queue {width:6em}", ".ui {width:8em}"); // Set the correct title. string reqState = $(YarnWebParams.AppState); reqState = (reqState == null || reqState.IsEmpty() ? "All" : reqState); SetTitle(StringHelper.Sjoin(reqState, "Applications")); }
/* * (non-Javadoc) * @see org.apache.hadoop.mapreduce.v2.hs.webapp.HsView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) */ protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { string jobID = $(AMParams.JobId); Set(Title, jobID.IsEmpty() ? "Bad request: missing job ID" : StringHelper.Join("Configuration for MapReduce Job " , $(AMParams.JobId))); CommonPreHead(html); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:2}"); Set(JQueryUI.DatatablesId, "conf"); Set(JQueryUI.InitID(JQueryUI.Datatables, "conf"), ConfTableInit()); Set(JQueryUI.PostInitID(JQueryUI.Datatables, "conf"), ConfPostTableInit()); SetTableStyles(html, "conf"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); string appAttemptId = $(YarnWebParams.ApplicationAttemptId); Set(Title, appAttemptId.IsEmpty() ? "Bad request: missing application attempt ID" : StringHelper.Join("Application Attempt ", $(YarnWebParams.ApplicationAttemptId ))); Set(JQueryUI.DatatablesId, "containers"); Set(JQueryUI.InitID(JQueryUI.Datatables, "containers"), WebPageUtils.ContainersTableInit ()); SetTableStyles(html, "containers", ".queue {width:6em}", ".ui {width:8em}"); Set(YarnWebParams.WebUiType, YarnWebParams.AppHistoryWebUi); }
/* * (non-Javadoc) * @see org.apache.hadoop.mapreduce.v2.hs.webapp.HsView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) */ protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); string tid = $(AMParams.TaskId); string activeNav = "3"; if (tid == null || tid.IsEmpty()) { activeNav = "2"; } Set(JQueryUI.InitID(Accordion, "nav"), "{autoHeight:false, active:" + activeNav + "}"); Set(DatatablesId, "singleCounter"); Set(JQueryUI.InitID(Datatables, "singleCounter"), CounterTableInit()); SetTableStyles(html, "singleCounter"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); string tid = $(AMParams.TaskId); string activeNav = "3"; if (tid == null || tid.IsEmpty()) { activeNav = "2"; } Set(JQueryUI.InitID(Accordion, "nav"), "{autoHeight:false, active:" + activeNav + "}"); Set(DatatablesSelector, "#counters .dt-counters"); Set(JQueryUI.InitSelector(Datatables), "{bJQueryUI:true, sDom:'t', iDisplayLength:-1}" ); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); string type = $(YarnWebParams.NodeState); string title = "Nodes of the cluster"; if (type != null && !type.IsEmpty()) { title = title + " (" + type + ")"; } SetTitle(title); Set(JQueryUI.DatatablesId, "nodes"); Set(JQueryUI.InitID(JQueryUI.Datatables, "nodes"), NodesTableInit()); SetTableStyles(html, "nodes", ".healthStatus {width:10em}", ".healthReport {width:10em}" ); }
/* (non-Javadoc) * @see org.apache.hadoop.yarn.server.nodemanager.webapp.NMView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) */ protected internal override void PreHead(Hamlet.HTML <HtmlPage._> html) { string logEntity = $(YarnWebParams.EntityString); if (logEntity == null || logEntity.IsEmpty()) { logEntity = $(YarnWebParams.ContainerId); } if (logEntity == null || logEntity.IsEmpty()) { logEntity = "UNKNOWN"; } Set(Title, StringHelper.Join("Logs for ", logEntity)); Set(JQueryUI.AccordionId, "nav"); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:0}"); }
protected internal override void Render(Hamlet.HTML <HtmlPage._> html) { Set(JQueryUI.DatatablesId, "t1 t2 t3 t4"); Set(JQueryUI.InitID(JQueryUI.Datatables, "t1"), JQueryUI.TableInit().Append("}"). ToString()); Set(JQueryUI.InitID(JQueryUI.Datatables, "t2"), StringHelper.Join("{bJQueryUI:true, sDom:'t'," , "aoColumns:[null, {bSortable:false, bSearchable:false}]}")); Set(JQueryUI.InitID(JQueryUI.Datatables, "t3"), "{bJQueryUI:true, sDom:'t'}"); Set(JQueryUI.InitID(JQueryUI.Datatables, "t4"), "{bJQueryUI:true, sDom:'t'}"); html.Title("Test DataTables").Link("/static/yarn.css").(typeof(JQueryUI)).Style(".wrapper { padding: 1em }" , ".wrapper h2 { margin: 0.5em 0 }", ".dataTables_wrapper { min-height: 1em }"). Div(".wrapper").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(JQueryUI.InfoWrap).Table("#t2").Thead().Tr(). Th(JQueryUI.Th, "Column1").Th(JQueryUI.Th, "Column2").().().Tbody().Tr().Td("r1" ).Td().$class(JQueryUI.CTable).Table("#t3").Thead().Tr().Th("SubColumn1").Th("SubColumn2" ).().().Tbody().Tr().Td("subc1r1").Td("subc2r1").().Tr().Td("subc1r2").Td("subc2r2" ).().().().().().Tr().Td("r2").Td().$class(JQueryUI.CTable).Table("#t4").Thead() .Tr().Th("SubColumn1").Th("SubColumn2").().().Tbody().Tr().Td("subc1r1").Td("subc2r1" ).().Tr().Td("subc1r2").Td("subc2r2").().().().().().().().().().(); }
protected internal override void CommonPreHead(Hamlet.HTML <HtmlPage._> html) { base.CommonPreHead(html); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:1}"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); SetTitle("Container " + $(ContainerId)); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:0}"); }
protected internal virtual void CommonPreHead(Hamlet.HTML <HtmlPage._> html) { Set(AccordionId, "nav"); Set(JQueryUI.InitID(Accordion, "nav"), "{autoHeight:false, active:1}"); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { Set(JQueryUI.AccordionId, "nav"); Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:0}"); }
/* * (non-Javadoc) * @see org.apache.hadoop.mapreduce.v2.hs.webapp.HsView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) */ protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); //override the nav config from commonPReHead Set(JQueryUI.InitID(JQueryUI.Accordion, "nav"), "{autoHeight:false, active:0}"); }