Class AppsBlock

java.lang.Object
org.apache.hadoop.yarn.webapp.View
org.apache.hadoop.yarn.webapp.view.TextView
org.apache.hadoop.yarn.webapp.view.HtmlBlock
org.apache.hadoop.yarn.server.webapp.AppsBlock
All Implemented Interfaces:
org.apache.hadoop.yarn.webapp.Params, org.apache.hadoop.yarn.webapp.SubView

public class AppsBlock extends org.apache.hadoop.yarn.webapp.view.HtmlBlock
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock

    org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block

    Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View

    org.apache.hadoop.yarn.webapp.View.ViewContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.hadoop.yarn.api.ApplicationBaseProtocol
     
    protected Collection<org.apache.hadoop.yarn.api.records.ApplicationReport>
     
    protected org.apache.hadoop.security.UserGroupInformation
     
    protected EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState>
     

    Fields inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock

    BYTES_IN_MB, DATE_PATTERN, UNAVAILABLE

    Fields inherited from interface org.apache.hadoop.yarn.webapp.Params

    ERROR_DETAILS, TITLE, TITLE_LINK, USER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AppsBlock(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt, org.apache.hadoop.yarn.webapp.View.ViewContext ctx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected List<org.apache.hadoop.yarn.api.records.ApplicationReport>
    getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest request)
     
    void
    render(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
     
    protected void
    renderData(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
     

    Methods inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock

    getCallerUGI, initUserHelpInformationDiv, render, renderPartial

    Methods inherited from class org.apache.hadoop.yarn.webapp.view.TextView

    echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writer

    Methods inherited from class org.apache.hadoop.yarn.webapp.View

    $, $, context, cookies, error, getInstance, inDevMode, info, injector, moreParams, outputStream, prefix, render, request, response, root, root_url, set, setTitle, setTitle, status, url

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • appBaseProt

      protected org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt
    • reqAppStates

      protected EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> reqAppStates
    • callerUGI

      protected org.apache.hadoop.security.UserGroupInformation callerUGI
    • appReports

      protected Collection<org.apache.hadoop.yarn.api.records.ApplicationReport> appReports
  • Constructor Details

    • AppsBlock

      @Inject protected AppsBlock(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt, org.apache.hadoop.yarn.webapp.View.ViewContext ctx)
  • Method Details

    • fetchData

      protected void fetchData() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException, InterruptedException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
      IOException
      InterruptedException
    • getApplicationReport

      protected List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
      IOException
    • render

      public void render(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
      Specified by:
      render in class org.apache.hadoop.yarn.webapp.view.HtmlBlock
    • renderData

      protected void renderData(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)