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.BlockNested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View
org.apache.hadoop.yarn.webapp.View.ViewContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.yarn.api.records.ApplicationAttemptIdprotected org.apache.hadoop.yarn.api.ApplicationBaseProtocolFields inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock
BYTES_IN_MB, DATE_PATTERN, UNAVAILABLEFields inherited from interface org.apache.hadoop.yarn.webapp.Params
ERROR_DETAILS, TITLE, TITLE_LINK, USER -
Constructor Summary
ConstructorsConstructorDescriptionAppAttemptBlock(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt, org.apache.hadoop.yarn.webapp.View.ViewContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateAttemptHeadRoomTable(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html) protected voidcreateTablesForAttemptMetrics(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html) protected voidgenerateOverview(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.ApplicationAttemptReportgetApplicationAttemptReport(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 booleanhasAMContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, Collection<org.apache.hadoop.yarn.api.records.ContainerReport> containers) protected voidrender(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html) Methods inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock
getCallerUGI, initUserHelpInformationDiv, render, renderPartialMethods inherited from class org.apache.hadoop.yarn.webapp.view.TextView
echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writerMethods 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
-
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:
renderin classorg.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.YarnExceptionIOException
-
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.YarnExceptionIOException
-
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)
-