org.apache.hadoop.chukwa.datacollection.collector.servlet
Class ServletCollector
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.chukwa.datacollection.collector.servlet.ServletCollector
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ServletCollector
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
Field Summary |
static String |
ACK_PREFIX
If a chunk is committed; then the ack will start with the following string. |
static String |
PATH
|
Method Summary |
protected void |
accept(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
destroy()
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
String |
getServletInfo()
|
ChukwaWriter |
getWriter()
|
void |
init(javax.servlet.ServletConfig servletConf)
|
void |
setWriter(ChukwaWriter w)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH
public static final String PATH
- See Also:
- Constant Field Values
ACK_PREFIX
public static final String ACK_PREFIX
- If a chunk is committed; then the ack will start with the following string.
- See Also:
- Constant Field Values
ServletCollector
public ServletCollector(org.apache.hadoop.conf.Configuration c)
setWriter
public void setWriter(ChukwaWriter w)
getWriter
public ChukwaWriter getWriter()
init
public void init(javax.servlet.ServletConfig servletConf)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
accept
protected void accept(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo
in interface javax.servlet.Servlet
- Overrides:
getServletInfo
in class javax.servlet.GenericServlet
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Servlet
- Overrides:
destroy
in class javax.servlet.GenericServlet
Copyright © ${year} The Apache Software Foundation