@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"}) public abstract class HtmlBlock extends TextView implements SubView
Modifier and Type | Class and Description |
---|---|
class |
HtmlBlock.Block |
View.ViewContext
Modifier and Type | Field and Description |
---|---|
protected static long |
BYTES_IN_MB |
protected static String |
DATE_PATTERN |
protected static String |
UNAVAILABLE |
ERROR_DETAILS, TITLE, TITLE_LINK, USER
Modifier | Constructor and Description |
---|---|
protected |
HtmlBlock() |
protected |
HtmlBlock(View.ViewContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.security.UserGroupInformation |
getCallerUGI() |
protected void |
initUserHelpInformationDiv(HtmlBlock.Block html,
boolean isEnabled)
Initialize User Help Information Div.
|
void |
render()
The API to render the view
|
protected abstract void |
render(HtmlBlock.Block html)
Render a block of html.
|
void |
renderPartial()
render the sub-view
|
echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writer
protected static final String UNAVAILABLE
protected static final long BYTES_IN_MB
protected static final String DATE_PATTERN
protected HtmlBlock()
protected HtmlBlock(View.ViewContext ctx)
public void render()
View
public void renderPartial()
SubView
renderPartial
in interface SubView
protected abstract void render(HtmlBlock.Block html)
html
- the block to renderprotected org.apache.hadoop.security.UserGroupInformation getCallerUGI()
protected void initUserHelpInformationDiv(HtmlBlock.Block html, boolean isEnabled)
html
- HTML page.isEnabled
- If federation is enabled.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.