package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.text.DecimalFormat; import com.cloudera.flume.master.FlumeMaster; import com.cloudera.flume.master.commands.GenericCommand; public final class mastercommand_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static java.util.Vector _jspx_dependants; public java.util.List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; 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 { _jspxFactory = JspFactory.getDefaultFactory(); 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 Licensed to Cloudera, Inc. under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. Cloudera, Inc. licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you may not use this file except in compliance\n with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<html>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/flume.css\">\n<head>\n<!-- Retro web 1.0 flume reporter display -->\n<title>Flume Master: Direct Command</title>\n\n\n"); com.cloudera.flume.master.commands.GenericCommand rawcmd = null; synchronized (session) { rawcmd = (com.cloudera.flume.master.commands.GenericCommand) _jspx_page_context.getAttribute("rawcmd", PageContext.SESSION_SCOPE); if (rawcmd == null){ rawcmd = new com.cloudera.flume.master.commands.GenericCommand(); _jspx_page_context.setAttribute("rawcmd", rawcmd, PageContext.SESSION_SCOPE); } } out.write('\n'); org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("rawcmd"), request); out.write("\n\n\n</head>\n<body>\n"); org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "menu.jsp", out, false); out.write("\n\n<h1> Flume Master: Direct Commands </h1>\n\nThis is a low level interface to the Flume Configuration Master's\ninternal command processor. Please consider using the FlumeShell instead!\n\n<h2>Command</h2>\n<form method=\"post\" action=\"mastersubmit.jsp\">\n<!-- convert this to a drop down -->\nCommand:\n<input type=\"text\" name=\"cmd\" /> <br/>\nArguments: <input type=\"text\" name=\"args\" /> <br/>\n<input type=\"submit\"/>\n</form>\n\n\nSome example commands:\n\ncommand args\n<ul>\n<li>save: flumespecfile\n<li>load: flumespecfile\n<li>config: \"node\" \"source\" \"sink\"\n<li>unconfig: \"node\"\n<li>multiconfig: \"node1: source | sink; node2 : source | sink; ... \"\n<li>startlogical: physicalnodename logicalnodename\n</ul>\n\n</body></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 { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); } } }