public class StatusServlet extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
PARAM |
static String |
PARAM_RELOAD |
static String |
PARAM_STARTED |
static String |
PARAM_SUMMARY |
static String |
PARAM_SUMMARY_KEY |
protected ProbeManager |
pm |
static String |
PROBE_PARAM |
Constructor and Description |
---|
StatusServlet() |
Modifier and Type | Method and Description |
---|---|
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) |
protected HealthCheckResult |
getOrRunHealthCheck(String probe) |
protected void |
getStartedInfo(StringBuilder response) |
protected void |
getSummaryInfo(StringBuilder response) |
void |
init() |
protected void |
sendHealthCheckResponse(javax.servlet.http.HttpServletResponse resp,
HealthCheckResult result) |
protected void |
sendResponse(javax.servlet.http.HttpServletResponse resp,
String response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String PARAM
public static final String PARAM_STARTED
public static final String PARAM_SUMMARY
public static final String PARAM_SUMMARY_KEY
public static final String PARAM_RELOAD
public static final String PROBE_PARAM
protected ProbeManager pm
public StatusServlet()
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void sendHealthCheckResponse(javax.servlet.http.HttpServletResponse resp, HealthCheckResult result) throws IOException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void sendResponse(javax.servlet.http.HttpServletResponse resp, String response) throws IOException
IOException
protected void getSummaryInfo(StringBuilder response)
protected void getStartedInfo(StringBuilder response)
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected HealthCheckResult getOrRunHealthCheck(String probe)
Copyright © 2018 Nuxeo. All rights reserved.