View Javadoc

1   package org.apache.hadoop.hbase.generated.master;
2   
3   import javax.servlet.*;
4   import javax.servlet.http.*;
5   import javax.servlet.jsp.*;
6   import org.apache.hadoop.hbase.zookeeper.ZKUtil;
7   import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
8   import org.apache.hadoop.hbase.HBaseConfiguration;
9   import org.apache.hadoop.hbase.master.HMaster;
10  
11  public final class zk_jsp extends org.apache.jasper.runtime.HttpJspBase
12      implements org.apache.jasper.runtime.JspSourceDependent {
13  
14    private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
15  
16    private static java.util.Vector _jspx_dependants;
17  
18    private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
19  
20    public Object getDependants() {
21      return _jspx_dependants;
22    }
23  
24    public void _jspService(HttpServletRequest request, HttpServletResponse response)
25          throws java.io.IOException, ServletException {
26  
27      PageContext pageContext = null;
28      HttpSession session = null;
29      ServletContext application = null;
30      ServletConfig config = null;
31      JspWriter out = null;
32      Object page = this;
33      JspWriter _jspx_out = null;
34      PageContext _jspx_page_context = null;
35  
36      try {
37        response.setContentType("text/html;charset=UTF-8");
38        pageContext = _jspxFactory.getPageContext(this, request, response,
39        			null, true, 8192, true);
40        _jspx_page_context = pageContext;
41        application = pageContext.getServletContext();
42        config = pageContext.getServletConfig();
43        session = pageContext.getSession();
44        out = pageContext.getOut();
45        _jspx_out = out;
46        _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
47  
48        out.write('\n');
49  
50    HMaster master = (HMaster)getServletContext().getAttribute(HMaster.MASTER);
51    ZooKeeperWatcher watcher = master.getZooKeeper();
52  
53        out.write("\n<!--[if IE]>\n<!DOCTYPE html>\n<![endif]-->\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!-- Dont put a doctype jetty doesnt serve the css/js out correctly so we need quirks mode on -->\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n  <head>\n    <meta charset=\"utf-8\">\n    <title>ZooKeeper Dump</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    <body>\n\n        <div class=\"navbar  navbar-fixed-top navbar-default\">\n            <div class=\"container-fluid\">\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");
54        out.write("                        <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><a href=\"/master-status\">Home</a></li>\n                        <li><a href=\"/tablesDetailed.jsp\">Table Details</a></li>\n                        <li><a href=\"/procedures.jsp\">Procedures</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                        ");
55   if (HBaseConfiguration.isShowConfInServlet()) { 
56        out.write("\n                        <li><a href=\"/conf\">HBase Configuration</a></li>\n                        ");
57   } 
58        out.write("\n                    </ul>\n                </div><!--/.nav-collapse -->\n            </div>\n        </div>\n\n        <div class=\"container-fluid content\">\n            <div class=\"row inner_header\">\n                <div class=\"page-header\">\n                    <h1>Zookeeper Dump</h1>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"span12\">\n                    <pre>");
59        out.print( ZKUtil.dump(watcher).trim() );
60        out.write("</pre>\n                </div>\n            </div>\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");
61      } catch (Throwable t) {
62        if (!(t instanceof SkipPageException)){
63          out = _jspx_out;
64          if (out != null && out.getBufferSize() != 0)
65            out.clearBuffer();
66          if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
67        }
68      } finally {
69        _jspxFactory.releasePageContext(_jspx_page_context);
70      }
71    }
72  }