org.apache.avro.ipc.trace
Class TraceClientServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.avro.ipc.trace.TraceClientServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class TraceClientServlet
extends HttpServlet

See Also:
Serialized Form

Constructor Summary
TraceClientServlet()
           
 
Method Summary
protected  List<org.apache.avro.ipc.trace.Span> collectAllSpans(List<URL> hosts)
           
protected  List<org.apache.avro.ipc.trace.Span> collectRangedSpans(List<URL> hosts, long start, long end)
           
 void doGet(HttpServletRequest request, HttpServletResponse response)
          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]
 void doPost(HttpServletRequest request, HttpServletResponse response)
           
static org.apache.velocity.Template getTemplate(org.apache.velocity.app.VelocityEngine ve, String path)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
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
 

Constructor Detail

TraceClientServlet

public TraceClientServlet()
Method Detail

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