org.apache.avro.ipc.trace
Class TraceClientServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.avro.ipc.trace.TraceClientServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class TraceClientServlet
- extends HttpServlet
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraceClientServlet
public TraceClientServlet()
getTemplate
public static org.apache.velocity.Template getTemplate(org.apache.velocity.app.VelocityEngine ve,
String path)
throws IOException
- Throws:
IOException
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
IOException
collectAllSpans
protected List<org.apache.avro.ipc.trace.Span> collectAllSpans(List<URL> hosts)
collectRangedSpans
protected List<org.apache.avro.ipc.trace.Span> collectRangedSpans(List<URL> hosts,
long start,
long end)
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException
- We support the following URL patterns
/overview/ Show all execution patterns
/collection/[p_id] Show details for pattern with [p_id]
/collection/[p_id]/[n_id]/ Show trace node with [n_id]
- Overrides:
doGet
in class HttpServlet
- Throws:
IOException
Copyright © 2010 The Apache Software Foundation