Class HtmlBlock
java.lang.Object
org.apache.hadoop.yarn.webapp.View
org.apache.hadoop.yarn.webapp.view.TextView
org.apache.hadoop.yarn.webapp.view.HtmlBlock
- Direct Known Subclasses:
AggregatedLogsBlock,AggregatedLogsNavBlock,FooterBlock,HeaderBlock,InfoBlock,JQueryUI,LipsumBlock,LogAggregationHtmlBlock,NavBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View
View.ViewContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longprotected static final Stringprotected static final StringFields inherited from interface org.apache.hadoop.yarn.webapp.Params
ERROR_DETAILS, TITLE, TITLE_LINK, USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.security.UserGroupInformationprotected voidinitUserHelpInformationDiv(HtmlBlock.Block html, boolean isEnabled) Initialize User Help Information Div.voidrender()The API to render the viewprotected abstract voidrender(HtmlBlock.Block html) Render a block of html.voidrender the sub-viewMethods inherited from class org.apache.hadoop.yarn.webapp.view.TextView
echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writer
-
Field Details
-
UNAVAILABLE
- See Also:
-
BYTES_IN_MB
protected static final long BYTES_IN_MB- See Also:
-
DATE_PATTERN
- See Also:
-
-
Constructor Details
-
HtmlBlock
protected HtmlBlock() -
HtmlBlock
-
-
Method Details
-
render
public void render()Description copied from class:ViewThe API to render the view -
renderPartial
public void renderPartial()Description copied from interface:SubViewrender the sub-view- Specified by:
renderPartialin interfaceSubView
-
render
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
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.
-