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


Java View类代码示例

本文整理汇总了Java中org.apache.hadoop.yarn.webapp.View的典型用法代码示例。如果您正苦于以下问题:Java View类的具体用法?Java View怎么用?Java View使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


View类属于org.apache.hadoop.yarn.webapp包,在下文中一共展示了View类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
public static <T> Injector testPage(Class<? extends View> page, Class<T> api,
                                    T impl, Map<String,String> params, Module... modules) {
  Injector injector = createMockInjector(api, impl, modules);
  View view = injector.getInstance(page);
  if(params != null) {
    for(Map.Entry<String, String> entry: params.entrySet()) {
      view.set(entry.getKey(), entry.getValue());
    }
  }
  view.render();
  flushOutput(injector);
  return injector;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:WebAppTests.java

示例2: testTasksViewNaturalSortType

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Test
public void testTasksViewNaturalSortType() {
  LOG.info("HsTasksPage");
  AppContext appContext = new MockAppContext(0, 1, 1, 1);
  Map<String, String> params = TestAMWebApp.getTaskParams(appContext);
  Injector testPage = WebAppTests.testPage(HsTasksPage.class, AppContext.class, appContext, params);
  View viewInstance = testPage.getInstance(HsTasksPage.class);
  Map<String, String> moreParams = viewInstance.context().requestContext().moreParams();
  String appTableColumnsMeta = moreParams.get("ui.dataTables.selector.init");
  Assert.assertTrue(appTableColumnsMeta.indexOf("natural") != -1);
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:12,代码来源:TestHSWebApp.java

示例3: testTaskViewNaturalSortType

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Test
public void testTaskViewNaturalSortType() {
  LOG.info("HsTaskPage");
  AppContext appContext = new MockAppContext(0, 1, 1, 1);
  Map<String, String> params = TestAMWebApp.getTaskParams(appContext);
  Injector testPage = WebAppTests.testPage(HsTaskPage.class, AppContext.class, appContext, params);
  View viewInstance = testPage.getInstance(HsTaskPage.class);
  Map<String, String> moreParams = viewInstance.context().requestContext().moreParams();
  String appTableColumnsMeta = moreParams.get("ui.dataTables.attempts.init");
  Assert.assertTrue(appTableColumnsMeta.indexOf("natural") != -1);
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:12,代码来源:TestHSWebApp.java

示例4: jobPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return The class that will render the /job page
 */
protected Class<? extends View> jobPage() {
  return JobPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例5: countersPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return the class that will render the /jobcounters page
 */
protected Class<? extends View> countersPage() {
  return CountersPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例6: singleCounterPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return the class that will render the /singlejobcounter page
 */
protected Class<? extends View> singleCounterPage() {
  return SingleCounterPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例7: tasksPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return the class that will render the /tasks page
 */
protected Class<? extends View> tasksPage() {
  return TasksPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例8: taskPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return the class that will render the /task page
 */
protected Class<? extends View> taskPage() {
  return TaskPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例9: attemptsPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return the class that will render the /attempts page
 */
protected Class<? extends View> attemptsPage() {
  return AttemptsPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例10: confPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
/**
 * @return the page that will be used to render the /conf page
 */
protected Class<? extends View> confPage() {
  return JobConfPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:AppController.java

示例11: jobPage

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

示例12: countersPage

import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Override
public Class<? extends View> countersPage() {
  return HsCountersPage.class;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:HsController.java

示例13: tasksPage

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

示例14: taskPage

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

示例15: attemptsPage

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


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