org.apache.hadoop.yarn.webapp.SubView Java Examples
The following examples show how to use
org.apache.hadoop.yarn.webapp.SubView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InfoPage.java From XLearning with Apache License 2.0 | 5 votes |
@Override protected Class<? extends SubView> header() { try { if (WebApps.Builder.class.getMethod("build", WebApp.class) != null) { return HeaderBlock.class; } } catch (NoSuchMethodException e) { LOG.debug("current hadoop version don't have the method build of Class " + WebApps.class.toString() + ". For More Detail: " + e); return org.apache.hadoop.yarn.webapp.view.HeaderBlock.class; } return null; }
Example #2
Source File: InfoPage.java From XLearning with Apache License 2.0 | 5 votes |
@Override protected Class<? extends SubView> content() { if ($(APP_TYPE).equals("Tensorflow") || $(APP_TYPE).equals("Mxnet") || $(APP_TYPE).equals("Lightlda") || $(APP_TYPE).equals("Xflow")) { return InfoBlock.class; } else { return SingleInfoBlock.class; } }
Example #3
Source File: WebAppTests.java From hadoop with Apache License 2.0 | 5 votes |
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; }
Example #4
Source File: HsAboutPage.java From big-c with Apache License 2.0 | 5 votes |
/** * 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; }
Example #5
Source File: HamletImpl.java From hadoop with Apache License 2.0 | 5 votes |
/** * 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(); }
Example #6
Source File: HsAboutPage.java From hadoop with Apache License 2.0 | 5 votes |
/** * 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; }
Example #7
Source File: WebAppTests.java From big-c with Apache License 2.0 | 5 votes |
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; }
Example #8
Source File: DefaultSchedulerPage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return QueuesBlock.class; }
Example #9
Source File: JobPage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return JobBlock.class; }
Example #10
Source File: ContainerPage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return ContainerBlock.class; }
Example #11
Source File: TwoColumnLayout.java From big-c with Apache License 2.0 | 4 votes |
/** * @return the class that will render the header of the page. */ protected Class<? extends SubView> header() { return HeaderBlock.class; }
Example #12
Source File: NodeLabelsPage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return NodeLabelsBlock.class; }
Example #13
Source File: DefaultSchedulerPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return QueuesBlock.class; }
Example #14
Source File: NodePage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return NodeBlock.class; }
Example #15
Source File: AggregatedLogsPage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> nav() { return AggregatedLogsNavBlock.class; }
Example #16
Source File: SCMOverviewPage.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return SCMOverviewBlock.class; }
Example #17
Source File: HsAttemptsPage.java From hadoop with Apache License 2.0 | 4 votes |
/** * The content will render a different set of task attempts. * @return FewAttemptsBlock.class */ @Override protected Class<? extends SubView> content() { return FewAttemptsBlock.class; }
Example #18
Source File: TwoColumnCssLayout.java From big-c with Apache License 2.0 | 4 votes |
protected Class<? extends SubView> header() { return HeaderBlock.class; }
Example #19
Source File: InfoPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return InfoBlock.class; }
Example #20
Source File: AHSView.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return AppsBlock.class; }
Example #21
Source File: AppAttemptPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return AppAttemptBlock.class; }
Example #22
Source File: ContainerPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return ContainerBlock.class; }
Example #23
Source File: HtmlBlock.java From big-c with Apache License 2.0 | 4 votes |
@Override protected void subView(Class<? extends SubView> cls) { context().set(nestLevel(), wasInline()); render(cls); setWasInline(context().wasInline()); }
Example #24
Source File: AHSView.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> nav() { return NavBlock.class; }
Example #25
Source File: NodeLabelsPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return NodeLabelsBlock.class; }
Example #26
Source File: AppPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return RMAppBlock.class; }
Example #27
Source File: RmView.java From big-c with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return AppsBlockWithMetrics.class; }
Example #28
Source File: TwoColumnCssLayout.java From big-c with Apache License 2.0 | 4 votes |
protected Class<? extends SubView> content() { return LipsumBlock.class; }
Example #29
Source File: ContainerPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return ContainerBlock.class; }
Example #30
Source File: CapacitySchedulerPage.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected Class<? extends SubView> content() { return QueuesBlock.class; }