Example #1
0
 /*
  * (non-Javadoc)
  * @see org.apache.hadoop.yarn.webapp.view.TwoColumnLayout#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML)
  */
 protected override void PreHead(Hamlet.HTML <HtmlPage._> html)
 {
     CommonPreHead(html);
     Set(JQueryUI.DatatablesId, "jobs");
     Set(JQueryUI.InitID(JQueryUI.Datatables, "jobs"), JobsTableInit());
     Set(JQueryUI.PostInitID(JQueryUI.Datatables, "jobs"), JobsPostTableInit());
     SetTableStyles(html, "jobs");
 }
Example #2
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);
     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");
 }
Example #3
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: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");
 }
Example #4
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)
        {
            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");
        }