本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例11: jobPage
import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Override
protected Class<? extends View> jobPage() {
return HsJobPage.class;
}
示例12: countersPage
import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Override
public Class<? extends View> countersPage() {
return HsCountersPage.class;
}
示例13: tasksPage
import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Override
protected Class<? extends View> tasksPage() {
return HsTasksPage.class;
}
示例14: taskPage
import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Override
protected Class<? extends View> taskPage() {
return HsTaskPage.class;
}
示例15: attemptsPage
import org.apache.hadoop.yarn.webapp.View; //导入依赖的package包/类
@Override
protected Class<? extends View> attemptsPage() {
return HsAttemptsPage.class;
}