public abstract class RouterBlock
extends org.apache.hadoop.yarn.webapp.view.HtmlBlock
Modifier and Type | Field and Description |
---|---|
static String |
ROUTER |
Constructor and Description |
---|
RouterBlock(Router router,
org.apache.hadoop.yarn.webapp.View.ViewContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getActiveSubClusterIds()
Get a list of SubClusterIds for ActiveSubClusters.
|
protected org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo |
getClusterMetricsInfo(String webAppAddress)
Get RouterClusterMetrics Info.
|
protected org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo |
getClusterMetricsInfoBySubClusterId(String subclusterId)
Get ClusterMetricsInfo By SubClusterId.
|
org.apache.hadoop.yarn.server.federation.utils.FederationStateStoreFacade |
getFacade() |
protected org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo |
getRouterClusterMetricsInfo()
Get RouterClusterMetrics Info.
|
protected org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo |
getSubClusterInfoByLocalCluster(org.apache.hadoop.conf.Configuration config)
Generate SubClusterInfo based on local cluster information.
|
protected List<org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo> |
getSubClusterInfoList()
Get a list of subclusters.
|
protected Collection<org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo> |
getSubClusterInfoList(String subclusterId)
Get SubClusterInfo based on subclusterId.
|
protected void |
initApplicationsMenu(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.UL<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet>> mainList,
List<String> subClusterIds)
Initialize the Applications menu.
|
protected void |
initNodeLabelsMenu(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.UL<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet>> mainList,
List<String> subClusterIds)
Initialize the NodeLabels menu.
|
protected void |
initNodesMenu(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.UL<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet>> mainList,
List<String> subClusterIds)
Initialize the Nodes menu.
|
protected void |
initSubClusterMetricsOverviewTable(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html,
String subclusterId)
init SubCluster MetricsOverviewTable.
|
protected boolean |
isYarnFederationEnabled()
Whether Yarn Federation is enabled.
|
getCallerUGI, initUserHelpInformationDiv, render, render, renderPartial
echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writer
public static final String ROUTER
public RouterBlock(Router router, org.apache.hadoop.yarn.webapp.View.ViewContext ctx)
protected org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getRouterClusterMetricsInfo()
protected org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getClusterMetricsInfo(String webAppAddress)
webAppAddress
- webAppAddress.protected List<org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo> getSubClusterInfoList()
protected boolean isYarnFederationEnabled()
protected List<String> getActiveSubClusterIds()
protected void initSubClusterMetricsOverviewTable(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html, String subclusterId)
html
- HTML Object.subclusterId
- subClusterIdprotected org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getClusterMetricsInfoBySubClusterId(String subclusterId)
subclusterId
- subClusterIdprotected Collection<org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo> getSubClusterInfoList(String subclusterId)
subclusterId
- subCluster Idpublic org.apache.hadoop.yarn.server.federation.utils.FederationStateStoreFacade getFacade()
protected void initNodesMenu(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.UL<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet>> mainList, List<String> subClusterIds)
mainList
- HTML Object.subClusterIds
- subCluster List.protected void initApplicationsMenu(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.UL<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet>> mainList, List<String> subClusterIds)
mainList
- HTML Object.subClusterIds
- subCluster List.protected void initNodeLabelsMenu(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.UL<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet2.Hamlet>> mainList, List<String> subClusterIds)
mainList
- HTML Object.subClusterIds
- subCluster List.protected org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo getSubClusterInfoByLocalCluster(org.apache.hadoop.conf.Configuration config)
config
- Configuration.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.