public class ContainerStatsBlock extends SliderHamletBlock
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ContainerStatsBlock.ClusterNodeNameComparator
Sort a collection of ClusterNodes by name
|
protected static class |
ContainerStatsBlock.TableAnchorContent
Creates a table cell with an anchor to the given URL with the provided String as content.
|
protected static class |
ContainerStatsBlock.TableContent
Creates a table cell with the provided String as content.
|
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.base.Function<Map.Entry<String,Integer>,Map.Entry<ContainerStatsBlock.TableContent,Integer>> |
stringIntPairFunc |
protected static com.google.common.base.Function<Map.Entry<String,Long>,Map.Entry<ContainerStatsBlock.TableContent,Long>> |
stringLongPairFunc |
protected static com.google.common.base.Function<Map.Entry<String,String>,Map.Entry<ContainerStatsBlock.TableContent,String>> |
stringStringPairFunc |
appState, providerService, restPaths| Constructor and Description |
|---|
ContainerStatsBlock(WebAppApi slider) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildNodeUrlForContainer(String nodeAddress,
String containerId)
Build a URL from the address:port and container ID directly to the NodeManager service
|
protected <T1 extends ContainerStatsBlock.TableContent,T2> |
generateRoleDetails(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet.Hamlet> parent,
String divSelector,
String detailsName,
Iterable<Map.Entry<T1,T2>> contents)
Given a div, a name for this data, and some pairs of data, generate a nice HTML table.
|
protected Map<String,RoleInstance> |
getContainerInstances(List<RoleInstance> roleInstances) |
protected void |
render(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html) |
protected static <T> com.google.common.base.Function<Map.Entry<String,T>,Map.Entry<ContainerStatsBlock.TableContent,T>> |
toTableContentFunction() |
apiPath, relPath, rootPathgetCallerUGI, render, renderPartialprotected static final com.google.common.base.Function<Map.Entry<String,Integer>,Map.Entry<ContainerStatsBlock.TableContent,Integer>> stringIntPairFunc
protected static final com.google.common.base.Function<Map.Entry<String,Long>,Map.Entry<ContainerStatsBlock.TableContent,Long>> stringLongPairFunc
@Inject public ContainerStatsBlock(WebAppApi slider)
protected void render(org.apache.hadoop.yarn.webapp.view.HtmlBlock.Block html)
render in class org.apache.hadoop.yarn.webapp.view.HtmlBlockprotected static <T> com.google.common.base.Function<Map.Entry<String,T>,Map.Entry<ContainerStatsBlock.TableContent,T>> toTableContentFunction()
protected Map<String,RoleInstance> getContainerInstances(List<RoleInstance> roleInstances)
protected <T1 extends ContainerStatsBlock.TableContent,T2> void generateRoleDetails(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.DIV<org.apache.hadoop.yarn.webapp.hamlet.Hamlet> parent, String divSelector, String detailsName, Iterable<Map.Entry<T1,T2>> contents)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.