Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.hadoop.hbase.generated.master;
 
 import javax.servlet.*;
 import static org.apache.commons.lang.StringEscapeUtils.escapeXml;
public final class tablesDetailed_jsp extends org.apache.jasper.runtime.HttpJspBase
  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
  private static java.util.Vector _jspx_dependants;
  public Object getDependants() {
    return ;
  }
  public void _jspService(HttpServletRequest requestHttpServletResponse response)
        throws java.io.IOExceptionServletException {
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;
    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = .getPageContext(thisrequestresponse,
      			nulltrue, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
       = (org.apache.jasper.runtime.ResourceInjectorapplication.getAttribute("com.sun.appserv.jsp.resource.injector");
      out.write('\n');
      out.write('\n');
  Configuration conf = master.getConfiguration();
      out.write("\n<!--[if IE]>\n<!DOCTYPE html>\n<![endif]-->\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <title>HBase Master: ");
      out.printmaster.getServerName() );
      out.write("</title>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <meta name=\"description\" content=\"\">\n    <meta name=\"author\" content=\"\">\n\n\n      <link href=\"/static/css/bootstrap.min.css\" rel=\"stylesheet\">\n      <link href=\"/static/css/bootstrap-theme.min.css\" rel=\"stylesheet\">\n      <link href=\"/static/css/hbase.css\" rel=\"stylesheet\">\n  </head>\n\n  <body>\n\n  <div class=\"navbar  navbar-fixed-top navbar-default\">\n      <div class=\"container\">\n          <div class=\"navbar-header\">\n              <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-collapse\">\n                  <span class=\"icon-bar\"></span>\n                  <span class=\"icon-bar\"></span>\n                  <span class=\"icon-bar\"></span>\n              </button>\n              <a class=\"navbar-brand\" href=\"/master-status\"><img src=\"/static/hbase_logo_small.png\" alt=\"HBase Logo\"/></a>\n          </div>\n          <div class=\"collapse navbar-collapse\">\n              <ul class=\"nav navbar-nav\">\n                  <li class=\"active\"><a href=\"/master-status\">Home</a></li>\n");
      out.write("                  <li><a href=\"/tablesDetailed.jsp\">Table Details</a></li>\n                  <li><a href=\"/logs/\">Local Logs</a></li>\n                  <li><a href=\"/logLevel\">Log Level</a></li>\n                  <li><a href=\"/dump\">Debug Dump</a></li>\n                  <li><a href=\"/jmx\">Metrics Dump</a></li>\n                  ");
 if (HBaseConfiguration.isShowConfInServlet()) { 
      out.write("\n                  <li><a href=\"/conf\">HBase Configuration</a></li>\n                  ");
 } 
      out.write("\n              </ul>\n          </div><!--/.nav-collapse -->\n      </div>\n  </div>\n\n  <div class=\"container\">\n    <div class=\"row inner_header\">\n        <div class=\"page-header\">\n            <h1>User Tables</h1>\n        </div>\n    </div>\n\n");
 HTableDescriptor[] tables = new HBaseAdmin(conf).listTables();
   if(tables != null && tables.length > 0) { 
      out.write("\n<table class=\"table table-striped\">\n<tr>\n    <th>Table</th>\n    <th>Description</th>\n</tr>\n");
   for(HTableDescriptor htDesc : tables ) { 
      out.write("\n<tr>\n    <td><a href=\"/table.jsp?name=");
      out.printescapeXml(htDesc.getTableName().getNameAsString()) );
      out.write('"');
      out.write('>');
      out.printescapeXml(htDesc.getTableName().getNameAsString()) );
      out.write("</a></td>\n    <td>");
      out.printhtDesc.toString() );
      out.write("</td>\n</tr>\n");
   }  
      out.write("\n\n<p> ");
      out.printtables.length );
      out.write(" table(s) in set.</p>\n</table>\n");
 } 
      out.write("\n</div>\n<script src=\"/static/js/jquery.min.js\" type=\"text/javascript\"></script>\n<script src=\"/static/js/bootstrap.min.js\" type=\"text/javascript\"></script>\n\n</body>\n</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null_jspx_page_context.handlePageException(t);
      }
    } finally {
      .releasePageContext(_jspx_page_context);
    }
  }
New to GrepCode? Check out our FAQ X