Class AppAttemptBlock

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.AppAttemptBlock
All Implemented Interfaces:
org.apache.hadoop.yarn.webapp.Params, org.apache.hadoop.yarn.webapp.SubView

public class AppAttemptBlock 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.records.ApplicationAttemptId
     
    protected org.apache.hadoop.yarn.api.ApplicationBaseProtocol
     

    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
    Constructor
    Description
    AppAttemptBlock(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt, org.apache.hadoop.yarn.webapp.View.ViewContext ctx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createAttemptHeadRoomTable(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
     
    protected void
    createTablesForAttemptMetrics(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
     
    protected void
    generateOverview(org.apache.hadoop.yarn.api.records.ApplicationAttemptReport appAttemptReport, Collection<org.apache.hadoop.yarn.api.records.ContainerReport> containers, AppAttemptInfo appAttempt, String node)
     
    protected org.apache.hadoop.yarn.api.records.ApplicationAttemptReport
    getApplicationAttemptReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportRequest request)
     
    protected List<org.apache.hadoop.yarn.api.records.ContainerReport>
    getContainers(org.apache.hadoop.yarn.api.protocolrecords.GetContainersRequest request)
     
    protected boolean
    hasAMContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, Collection<org.apache.hadoop.yarn.api.records.ContainerReport> containers)
     
    protected void
    render(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
    • appAttemptId

      protected org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId
  • Constructor Details

    • AppAttemptBlock

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

    • render

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

      protected List<org.apache.hadoop.yarn.api.records.ContainerReport> getContainers(org.apache.hadoop.yarn.api.protocolrecords.GetContainersRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
      IOException
    • getApplicationAttemptReport

      protected org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttemptReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
      IOException
    • generateOverview

      protected void generateOverview(org.apache.hadoop.yarn.api.records.ApplicationAttemptReport appAttemptReport, Collection<org.apache.hadoop.yarn.api.records.ContainerReport> containers, AppAttemptInfo appAttempt, String node)
    • hasAMContainer

      protected boolean hasAMContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, Collection<org.apache.hadoop.yarn.api.records.ContainerReport> containers)
    • createAttemptHeadRoomTable

      protected void createAttemptHeadRoomTable(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
    • createTablesForAttemptMetrics

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