Search in sources :

Example 1 with SubView

use of org.apache.hadoop.yarn.webapp.SubView in project hadoop by apache.

the class TestHsJobBlock method createBlockToCreateTo.

private static HtmlBlock.Block createBlockToCreateTo(OutputStream outputStream) {
    PrintWriter printWriter = new PrintWriter(outputStream);
    HtmlBlock html = new HtmlBlockForTest();
    return new BlockForTest(html, printWriter, 10, false) {

        @Override
        protected void subView(Class<? extends SubView> cls) {
        }
    };
}
Also used : HtmlBlockForTest(org.apache.hadoop.yarn.webapp.view.HtmlBlockForTest) HtmlBlock(org.apache.hadoop.yarn.webapp.view.HtmlBlock) SubView(org.apache.hadoop.yarn.webapp.SubView) PrintWriter(java.io.PrintWriter) BlockForTest(org.apache.hadoop.yarn.webapp.view.BlockForTest) HtmlBlockForTest(org.apache.hadoop.yarn.webapp.view.HtmlBlockForTest)

Aggregations

PrintWriter (java.io.PrintWriter)1 SubView (org.apache.hadoop.yarn.webapp.SubView)1 BlockForTest (org.apache.hadoop.yarn.webapp.view.BlockForTest)1 HtmlBlock (org.apache.hadoop.yarn.webapp.view.HtmlBlock)1 HtmlBlockForTest (org.apache.hadoop.yarn.webapp.view.HtmlBlockForTest)1