Class StatusServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.nuxeo.ecm.core.management.statuses.StatusServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class StatusServlet
extends javax.servlet.http.HttpServlet
Servlet for retrieving Nuxeo services running status.
- Since:
- 9.3 this servlet returns a status based of all the probes registered for the healthCheck.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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, log, log
-
Field Details
-
PARAM
- See Also:
-
PARAM_STARTED
- See Also:
-
PARAM_SUMMARY
- See Also:
-
PARAM_SUMMARY_KEY
- See Also:
-
PARAM_RELOAD
- See Also:
-
PROBE_PARAM
- See Also:
-
-
Constructor Details
-
StatusServlet
public StatusServlet()
-
-
Method Details
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
sendHealthCheckResponse
protected void sendHealthCheckResponse(javax.servlet.http.HttpServletResponse resp, HealthCheckResult result) throws IOException - Throws:
IOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
sendResponse
protected void sendResponse(javax.servlet.http.HttpServletResponse resp, String response) throws IOException - Throws:
IOException
-
getSummaryInfo
-
getStartedInfo
-
init
public void init() throws javax.servlet.ServletException- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
getOrRunHealthCheck
-