Examples of RSStatusTmpl


Examples of org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl

        );
    Mockito.doReturn(ResponseConverter.buildGetOnlineRegionResponse(
      regions)).when(rpcServices).getOnlineRegion((RpcController)Mockito.any(),
        (GetOnlineRegionRequest)Mockito.any());
   
    new RSStatusTmpl().render(new StringWriter(), rs);
  }
View Full Code Here

Examples of org.apache.hbase.tmpl.regionserver.RSStatusTmpl

    Mockito.doReturn(zkw).when(rs).getZooKeeper();
  }
 
  @Test
  public void testBasic() throws IOException {
    new RSStatusTmpl().render(new StringWriter(), rs);
  }
View Full Code Here

Examples of org.apache.hbase.tmpl.regionserver.RSStatusTmpl

        new HRegionInfo(htd.getName(), Bytes.toBytes("a"), Bytes.toBytes("d")),
        new HRegionInfo(htd.getName(), Bytes.toBytes("d"), Bytes.toBytes("z"))
        );
    Mockito.doReturn(regions).when(rs).getOnlineRegions();
   
    new RSStatusTmpl().render(new StringWriter(), rs);   
  }
View Full Code Here

Examples of org.apache.hbase.tmpl.regionserver.RSStatusTmpl

    HRegionServer hrs = (HRegionServer)getServletContext().getAttribute(
        HRegionServer.REGIONSERVER);
    assert hrs != null : "No RS in context!";
   
    resp.setContentType("text/html");
    RSStatusTmpl tmpl = new RSStatusTmpl();
    if (req.getParameter("format") != null)
      tmpl.setFormat(req.getParameter("format"));
    if (req.getParameter("filter") != null)
      tmpl.setFilter(req.getParameter("filter"));
    tmpl.render(resp.getWriter(), hrs);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.