当前位置: 首页>>代码示例>>Java>>正文


Java SubView类代码示例

本文整理汇总了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();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:HamletImpl.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:WebAppTests.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:HsAboutPage.java

示例4: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return WorkerGroupsBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:WorkerGroupsPage.java

示例5: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return TaskCountersBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:TaskCountersPage.java

示例6: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return WorkerGroupBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:WorkerGroupPage.java

示例7: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return ParameterServerThreadStackBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:ParameterServerThreadStackPage.java

示例8: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return AngelAppBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:AngelAppPage.java

示例9: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return WorkerCounterBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:WorkerCounterPage.java

示例10: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return EnvironmentBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:EnvironmentPage.java

示例11: content

import org.apache.hadoop.yarn.webapp.SubView; //导入依赖的package包/类
@Override
protected Class<? extends SubView> content() {
  return ExecutorsBlock.class;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:5,代码来源:ExecutorsPage.java

示例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;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:8,代码来源:TwoColumnLayout2.java

示例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;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:7,代码来源:TwoColumnLayout2.java

示例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;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:7,代码来源:TwoColumnLayout2.java

示例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;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:7,代码来源:TwoColumnLayout2.java


注:本文中的org.apache.hadoop.yarn.webapp.SubView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。