本文整理汇总了Java中org.apache.hadoop.yarn.webapp.SubView类的典型用法代码示例。如果您正苦于以下问题:Java SubView类的具体用法?Java SubView怎么用?Java SubView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SubView类属于org.apache.hadoop.yarn.webapp包,在下文中一共展示了SubView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: subView
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
/**
* Sub-classes should override this to do something interesting.
* @param cls the sub-view class
*/
protected void subView(Class<? extends SubView> cls) {
indent(of(ENDTAG)); // not an inline view
sb.setLength(0);
out.print(sb.append('[').append(cls.getName()).append(']').toString());
out.println();
}
示例2: testBlock
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
public static <T> Injector testBlock(Class<? extends SubView> block,
Class<T> api, T impl, Module... modules) {
Injector injector = createMockInjector(api, impl, modules);
injector.getInstance(block).renderPartial();
flushOutput(injector);
return injector;
}
示例3: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
/**
* The content of this page is the attempts block
* @return AttemptsBlock.class
*/
@Override protected Class<? extends SubView> content() {
HistoryInfo info = new HistoryInfo();
info("History Server").
_("BuildVersion", info.getHadoopBuildVersion()
+ " on " + info.getHadoopVersionBuiltOn()).
_("History Server started on", Times.format(info.getStartedOn()));
return InfoBlock.class;
}
示例4: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return WorkerGroupsBlock.class;
}
示例5: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return TaskCountersBlock.class;
}
示例6: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return WorkerGroupBlock.class;
}
示例7: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return ParameterServerThreadStackBlock.class;
}
示例8: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return AngelAppBlock.class;
}
示例9: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return WorkerCounterBlock.class;
}
示例10: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return EnvironmentBlock.class;
}
示例11: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
return ExecutorsBlock.class;
}
示例12: header
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
/**
* @return the class that will render the header of the page.
*/
protected Class<? extends SubView> header() {
return HeaderBlock.class;
}
示例13: content
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
/**
* @return the class that will render the content of the page.
*/
protected Class<? extends SubView> content() {
return LipsumBlock.class;
}
示例14: nav
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
/**
* @return the class that will render the navigation bar.
*/
protected Class<? extends SubView> nav() {
return NavBlock.class;
}
示例15: footer
import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
/**
* @return the class that will render the footer.
*/
protected Class<? extends SubView> footer() {
return FooterBlock.class;
}