Package org.apache.hbase.tmpl.regionserver

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


        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

    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

Related Classes of org.apache.hbase.tmpl.regionserver.RSStatusTmpl

Copyright © 2018 www.massapicom. 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.