@InterfaceAudience.Private public class ProfileServlet extends javax.servlet.http.HttpServlet
Modifier and Type | Class and Description |
---|---|
static class |
ProfileServlet.DisabledServlet |
(package private) static class |
ProfileServlet.Event |
(package private) static class |
ProfileServlet.Output |
Modifier and Type | Field and Description |
---|---|
private static String |
ACCESS_CONTROL_ALLOW_METHODS |
private static String |
ACCESS_CONTROL_ALLOW_ORIGIN |
private static String |
ALLOWED_METHODS |
private static String |
ASYNC_PROFILER_HOME_ENV |
private static String |
ASYNC_PROFILER_HOME_SYSTEM_PROPERTY |
private String |
asyncProfilerHome |
private static String |
CONTENT_TYPE_TEXT |
private static int |
DEFAULT_DURATION_SECONDS |
private static AtomicInteger |
ID_GEN |
private static org.slf4j.Logger |
LOG |
(package private) static String |
OUTPUT_DIR |
private Integer |
pid |
private Process |
process |
private static String |
PROFILER_SCRIPT |
private Lock |
profilerLock |
private static long |
serialVersionUID |
Constructor and Description |
---|
ProfileServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
(package private) static String |
getAsyncProfilerHome() |
private ProfileServlet.Event |
getEvent(javax.servlet.http.HttpServletRequest req) |
private Integer |
getInteger(javax.servlet.http.HttpServletRequest req,
String param,
Integer defaultValue) |
private Long |
getLong(javax.servlet.http.HttpServletRequest req,
String param) |
private Double |
getMinWidth(javax.servlet.http.HttpServletRequest req) |
private ProfileServlet.Output |
getOutput(javax.servlet.http.HttpServletRequest req) |
(package private) static void |
setResponseHeader(javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private static final org.slf4j.Logger LOG
private static final String ACCESS_CONTROL_ALLOW_METHODS
private static final String ALLOWED_METHODS
private static final String ACCESS_CONTROL_ALLOW_ORIGIN
private static final String CONTENT_TYPE_TEXT
private static final String ASYNC_PROFILER_HOME_ENV
private static final String ASYNC_PROFILER_HOME_SYSTEM_PROPERTY
private static final String PROFILER_SCRIPT
private static final int DEFAULT_DURATION_SECONDS
private static final AtomicInteger ID_GEN
static final String OUTPUT_DIR
private transient Lock profilerLock
private String asyncProfilerHome
public ProfileServlet()
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
doGet
in class javax.servlet.http.HttpServlet
IOException
private Integer getInteger(javax.servlet.http.HttpServletRequest req, String param, Integer defaultValue)
private Double getMinWidth(javax.servlet.http.HttpServletRequest req)
private ProfileServlet.Event getEvent(javax.servlet.http.HttpServletRequest req)
private ProfileServlet.Output getOutput(javax.servlet.http.HttpServletRequest req)
static void setResponseHeader(javax.servlet.http.HttpServletResponse response)
static String getAsyncProfilerHome()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.