Class HtmlBlock

All Implemented Interfaces:
Params, SubView
Direct Known Subclasses:
AggregatedLogsBlock, AggregatedLogsNavBlock, FooterBlock, HeaderBlock, InfoBlock, JQueryUI, LipsumBlock, LogAggregationHtmlBlock, NavBlock

@LimitedPrivate({"YARN","MapReduce"}) public abstract class HtmlBlock extends TextView implements SubView
  • Field Details

  • Constructor Details

    • HtmlBlock

      protected HtmlBlock()
    • HtmlBlock

      protected HtmlBlock(View.ViewContext ctx)
  • Method Details

    • render

      public void render()
      Description copied from class: View
      The API to render the view
      Specified by:
      render in class View
    • renderPartial

      public void renderPartial()
      Description copied from interface: SubView
      render the sub-view
      Specified by:
      renderPartial in interface SubView
    • render

      protected abstract void render(HtmlBlock.Block html)
      Render a block of html. To be overridden by implementation.
      Parameters:
      html - the block to render
    • getCallerUGI

      protected org.apache.hadoop.security.UserGroupInformation getCallerUGI()
    • initUserHelpInformationDiv

      protected void initUserHelpInformationDiv(HtmlBlock.Block html, boolean isEnabled)
      Initialize User Help Information Div. When the user does not configure the Yarn Federation function, prompt the user.
      Parameters:
      html - HTML page.
      isEnabled - If federation is enabled.