Beispiel #1
0
        // 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"));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 protected internal override string InitAppsTable()
 {
     return(WebPageUtils.AppsTableInit(true));
 }
Beispiel #4
0
 protected internal virtual string InitAppsTable()
 {
     return(WebPageUtils.AppsTableInit());
 }