public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, false, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); out = pageContext.getOut(); _jspx_out = out; out.write("<!DOCTYPE html>"); out.write("<html>"); out.write("<head>"); out.write("<title>"); out.write("Oryx Computation Layer"); out.write("</title>"); out.write("<link href=\"/style.jspx\" type=\"text/css\" rel=\"stylesheet\"/>"); out.write("<script type=\"text/javascript\">"); out.write( "\nfunction confirmAndPost(formName) {\n if (confirm(\"Are you sure?\")) {\n document.forms[formName].submit();\n return true;\n } else {\n return false;\n }\n}\n"); out.write("</script>"); out.write("</head>"); out.write("<body>"); out.write("<div style=\"width:800px;margin-left:auto;margin-right:auto;padding:10px\">"); out.write("<h1>"); out.write("Oryx Computation Layer"); out.write("</h1>"); out.write("<h2>"); out.write("Generations"); out.write("</h2>"); out.write("<table style=\"width:100%\">"); out.write("<tr>"); out.write("<th>"); out.write("Name"); out.write("</th>"); out.write("<th>"); out.write("Status"); out.write("</th>"); out.write("<th>"); out.write("Start"); out.write("</th>"); out.write("<th style=\"width:50px\">"); out.write("Map %"); out.write("</th>"); out.write("<th style=\"width:50px\">"); out.write("Reduce %"); out.write("</th>"); out.write("<th>"); out.write('E'); out.write('n'); out.write('d'); out.write("</th>"); out.write("</tr>"); PeriodicRunner periodicRunner = (PeriodicRunner) application.getAttribute(ComputationInitListener.PERIODIC_RUNNER_KEY); pageContext.setAttribute("periodicRunner", periodicRunner); PeriodicRunnerState periodicRunnerState = periodicRunner.getState(); if (!periodicRunnerState.isRunning()) { Date nextScheduledRun = periodicRunnerState.getNextScheduledRun(); pageContext.setAttribute( "nextScheduledRun", nextScheduledRun == null ? "" : formatShort(nextScheduledRun)); pageContext.setAttribute( "currentGenerationMB", periodicRunnerState.getCurrentGenerationMB()); out.write("<tr>"); out.write("<td style=\"background-color:black;text-align:left\" colspan=\"2\">"); out.write("<span style=\"font-style:italic\">"); out.write("Next Generation ("); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${currentGenerationMB}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" MB written)"); out.write("</span>"); out.write("\n ·\n "); out.write( "<form style=\"display:inline\" method=\"POST\" action=\"/periodicRunner/forceRun\" name=\"periodicRunnerForceRun\">"); out.write("<a href=\"javascript:confirmAndPost('periodicRunnerForceRun')\">"); out.write("Force Run"); out.write("</a>"); out.write("</form>"); out.write("</td>"); out.write("<td style=\"background-color:black;font-style:italic\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${nextScheduledRun}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td style=\"background-color:black\" colspan=\"3\">"); out.write(" "); out.write("</td>"); out.write("</tr>"); } for (GenerationRunnerState generationState : periodicRunner.getState().getGenerationStates()) { pageContext.setAttribute("generationState", generationState); pageContext.setAttribute("statusHexColor", getHexColor(generationState.getStatus())); pageContext.setAttribute( "formattedStartDateTime", formatShort(generationState.getStartTime())); pageContext.setAttribute("formattedEndDateTime", formatShort(generationState.getEndTime())); out.write("<tr>"); out.write("<td style=\"background-color:black;text-align:left\">"); out.write("<strong>"); out.write("Generation "); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${generationState.generationID}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</strong>"); out.write(" · "); out.write("<a target=\"_blank\" href=\"/log.txt\">"); out.write("Logs"); out.write("</a>"); if (generationState.isRunning()) { out.write("\n ·\n "); out.write( "<form style=\"display:inline\" method=\"POST\" action=\"/periodicRunner/interrupt\" name=\"periodicRunnerInterrupt\">"); out.write("<a href=\"javascript:confirmAndPost('periodicRunnerInterrupt')\">"); out.write("Interrupt"); out.write("</a>"); out.write("</form>"); } out.write("</td>"); out.write( "<td style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "background-color:black;text-align:center;color:${statusHexColor}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${generationState.status}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td style=\"background-color:black\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedStartDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td style=\"background-color:black\" colspan=\"2\">"); out.write(" "); out.write("</td>"); out.write("<td style=\"background-color:black\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedEndDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("</tr>"); for (StepState stepState : generationState.getStepStates()) { pageContext.setAttribute("statusHexColor", getHexColor(stepState.getStatus())); pageContext.setAttribute("stepState", stepState); pageContext.setAttribute("formattedStartDateTime", formatShort(stepState.getStartTime())); pageContext.setAttribute("formattedEndDateTime", formatShort(stepState.getEndTime())); pageContext.setAttribute("mapProgress", formatPercent(stepState.getMapProgress())); pageContext.setAttribute("reduceProgress", formatPercent(stepState.getReduceProgress())); String stepStateName = stepState.getName(); pageContext.setAttribute("stepStateName", stepStateName); out.write("<tr>"); out.write("<td>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${stepState.name}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write( "<td style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "text-align:center;color:${statusHexColor}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${stepState.status}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedStartDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td class=\"meter\">"); out.write( "<span style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "width:${mapProgress}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write(" "); out.write("</span>"); out.write("</td>"); out.write("<td class=\"meter\">"); out.write( "<span style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "width:${reduceProgress}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write(" "); out.write("</span>"); out.write("</td>"); out.write("<td>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedEndDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("</tr>"); } } out.write("</table>"); out.write("<p>"); out.write("© Cloudera, Inc., except for included third-party open source software."); out.write("</p>"); out.write("</div>"); out.write("</body>"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=utf-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<!--java 绝对地址 start -->\n"); String urlp = application.getContextPath() + "/jsp/back/"; System.out.println(urlp); out.write("\n"); out.write("<!-- java 绝对地址 end -->\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n"); out.write("<title>关于我们</title>\n"); out.write( " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write( " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n"); out.write(" <!-- Bootstrap Docs -->\n"); out.write( " <link href=\"http://getbootstrap.com/assets/css/docs.css\" rel=\"stylesheet\" media=\"screen\">\n"); out.write("\n"); out.write(" <!-- Bootstrap -->\n"); out.write(" <link href=\""); out.print(urlp); out.write("css/bootstrap.min.css\" rel=\"stylesheet\" media=\"screen\">\n"); out.write(" <link href=\""); out.print(urlp); out.write("css/bootstrap-theme.min.css\" rel=\"stylesheet\" media=\"screen\">\n"); out.write("\n"); out.write(" <!-- Bootstrap Admin Theme -->\n"); out.write(" <link href=\""); out.print(urlp); out.write("css/bootstrap-admin-theme.css\" rel=\"stylesheet\" media=\"screen\">\n"); out.write("\n"); out.write(" <!-- Custom styles -->\n"); out.write(" <style type=\"text/css\">\n"); out.write(" .bootstrap-admin-content-title h1{\n"); out.write(" font-size: 45px;\n"); out.write(" margin-bottom: 30px;\n"); out.write(" }\n"); out.write(" .bs-docs-home{\n"); out.write(" }\n"); out.write(" .bs-masthead{\n"); out.write(" padding: 0;\n"); out.write(" }\n"); out.write(" .bs-masthead h1{\n"); out.write(" font-size: 40px;\n"); out.write(" margin: 0;\n"); out.write(" padding: 34px 0;\n"); out.write(" text-align: center;\n"); out.write(" }\n"); out.write(" .bs-masthead a:hover{\n"); out.write(" text-decoration: none;\n"); out.write(" }\n"); out.write(" .meritoo-logo a{\n"); out.write(" background-color: #fff;\n"); out.write(" border: 1px solid rgba(66, 139, 202, 0.4);\n"); out.write(" display: block;\n"); out.write(" padding: 12px 0;\n"); out.write(" }\n"); out.write(" .meritoo-logo a img{\n"); out.write(" display: block;\n"); out.write(" margin: 0 auto;\n"); out.write(" }\n"); out.write(" .row-urls{\n"); out.write(" margin-top: 4px;\n"); out.write(" }\n"); out.write(" .row-urls .col-md-6{\n"); out.write(" text-align: center;\n"); out.write(" }\n"); out.write(" .row-urls .col-md-6 a{\n"); out.write(" font-size: 18px;\n"); out.write(" }\n"); out.write(" </style>\n"); out.write("\n"); out.write( " <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->\n"); out.write(" <!--[if lt IE 9]>\n"); out.write(" <script type=\"text/javascript\" src=\"js/html5shiv.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/respond.min.js\"></script>\n"); out.write(" <![endif]-->\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("<body class=\"bootstrap-admin-with-small-navbar\">\n"); out.write( " <nav class=\"navbar navbar-default navbar-inverse navbar-fixed-top \" role=\"navigation\">\n"); out.write(" <div class=\"container\">\n"); out.write(" <div class=\"row\">\n"); out.write(" <!-- Brand and toggle get grouped for better mobile display -->\n"); out.write(" <div class=\"navbar-header\">\n"); out.write( " <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\">\n"); out.write(" <span class=\"sr-only\">Toggle navigation</span>\n"); out.write(" <span class=\"icon-bar\"></span>\n"); out.write(" <span class=\"icon-bar\"></span>\n"); out.write(" <span class=\"icon-bar\"></span>\n"); out.write(" </button>\n"); out.write(" <a class=\"navbar-brand\" href=\"#\">Gc微博后台</a>\n"); out.write(" </div>\n"); out.write( " <!-- Collect the nav links, forms, and other content for toggling -->\n"); out.write( " <div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\">\n"); out.write(" <ul class=\"nav navbar-nav\">\n"); out.write(" <li class=\"active\"><a href=\"#\">首页</a></li>\n"); out.write(" <li ><a href=\""); out.print(urlp); out.write("back_help.jsp\">使用介绍</a></li> \n"); out.write(" </ul>\n"); out.write(" <form class=\"navbar-form navbar-left\" role=\"search\">\n"); out.write(" <div class=\"form-group\">\n"); out.write( " <input type=\"text\" class=\"form-control\" placeholder=\"请输入内容\">\n"); out.write(" </div>\n"); out.write(" <button type=\"submit\" class=\"btn btn-default\">搜索</button>\n"); out.write(" </form>\n"); out.write(" <ul class=\"nav navbar-nav navbar-right\">\n"); out.write(" <li class=\"dropdown\">\n"); out.write( " <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">管理员<b class=\"caret\"></b></a>\n"); out.write(" <ul class=\"dropdown-menu\">\n"); out.write(" <li><a href=\"/myblog/AdminSessionLogout\">退出登录</a></li>\n"); out.write(" </ul>\n"); out.write(" </li>\n"); out.write(" </ul>\n"); out.write(" </div><!-- /.navbar-collapse -->\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" </nav>\n"); out.write("\n"); out.write(" <div class=\"container\">\n"); out.write(" <!-- left, vertical navbar & content -->\n"); out.write(" <div class=\"row\">\n"); out.write(" <!-- left, vertical navbar -->\n"); out.write(" <div class=\"col-md-2 bootstrap-admin-col-left\">\n"); out.write( " <ul class=\"nav navbar-collapse collapse bootstrap-admin-navbar-side\">\n"); out.write(" <li >\n"); out.write(" <a href=\""); out.print(urlp); out.write("back_index.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 首页</a>\n"); out.write(" </li>\n"); out.write(" <li class=\"active\">\n"); out.write(" <a href=\""); out.print(urlp); out.write("back_about.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 关于我们</a>\n"); out.write(" </li> \n"); out.write(" <li class=\"disabled\">\n"); out.write( " <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 日历</a><!-- calendar.html -->\n"); out.write(" </li>\n"); out.write(" <li class=\"disabled\">\n"); out.write( " <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 统计图表</a><!-- stats.html -->\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\""); out.print(urlp); out.write( "back_journal_release.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 日志发布</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\""); out.print(urlp); out.write( "back_journal_admin.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 日志管理</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\""); out.print(urlp); out.write("back_users.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 用户管理</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\""); out.print(urlp); out.write( "back_message.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留言管理</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\""); out.print(urlp); out.write("back_image.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 图片管理</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write(" <a href=\""); out.print(urlp); out.write( "back_admin_information.jsp\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 账户中心</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write( " <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白1</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write( " <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白2</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write( " <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白3</a>\n"); out.write(" </li>\n"); out.write(" <li>\n"); out.write( " <a href=\"#\"><i class=\"glyphicon glyphicon-chevron-right\"></i> 留白4</a>\n"); out.write(" </li>\n"); out.write(" </ul>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" <!-- content -->\n"); out.write(" <div class=\"col-md-10\">\n"); out.write(" <div class=\"row bootstrap-admin-no-edges-padding\">\n"); out.write(" <div class=\"col-md-12\">\n"); out.write(" <div class=\"panel panel-default\">\n"); out.write(" <div class=\"panel-heading\">\n"); out.write( " <div class=\"text-muted bootstrap-admin-box-title\"><a href=\"#\">Statement (声明)</a></div>\n"); out.write(" </div>\n"); out.write(" <div class=\"bootstrap-admin-panel-content\">\n"); out.write(" <p>The MIT License (MIT)</p>\n"); out.write(" <p>版权所有© 2015>Gc</p>\n"); out.write(" <p>本系统所有权归Gc</p>\n"); out.write(" <p>如果有用户使用该系统活着其模板,必须经过作者同意。</p>\n"); out.write( " <p>若有其他问题,请联系作者: <a href=\"\"*****@*****.**> [email protected]</a></p>\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write("\n"); out.write(" \n"); out.write("\n"); out.write(" <div class=\"row\">\n"); out.write(" <hr>\n"); out.write(" <footer role=\"contentinfo\">\n"); out.write(" <p>©2015 <a href=\"#\" target=\"_blank\">Gc</a></p>\n"); out.write(" </footer>\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write("\n"); out.write( " <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script>\n"); out.write(" <script type=\"text/javascript\" src=\""); out.print(urlp); out.write("js/bootstrap.min.js\"></script>\n"); out.write(" <script type=\"text/javascript\" src=\""); out.print(urlp); out.write("js/twitter-bootstrap-hover-dropdown.min.js\"></script>\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }