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.HttpServletServlet 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAMstatic StringPARAM_RELOADstatic StringPARAM_STARTEDstatic StringPARAM_SUMMARYstatic StringPARAM_SUMMARY_KEYstatic StringPROBE_PARAM
-
Constructor Summary
Constructors Constructor Description StatusServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected HealthCheckResultgetOrRunHealthCheck(String probe)protected voidgetStartedInfo(StringBuilder response)protected voidgetSummaryInfo(StringBuilder response)voidinit()protected voidsendHealthCheckResponse(javax.servlet.http.HttpServletResponse resp, HealthCheckResult result)protected voidsendResponse(javax.servlet.http.HttpServletResponse resp, String response)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
PARAM
public static final String PARAM
- See Also:
- Constant Field Values
-
PARAM_STARTED
public static final String PARAM_STARTED
- See Also:
- Constant Field Values
-
PARAM_SUMMARY
public static final String PARAM_SUMMARY
- See Also:
- Constant Field Values
-
PARAM_SUMMARY_KEY
public static final String PARAM_SUMMARY_KEY
- See Also:
- Constant Field Values
-
PARAM_RELOAD
public static final String PARAM_RELOAD
- See Also:
- Constant Field Values
-
PROBE_PARAM
public static final String PROBE_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
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:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
sendResponse
protected void sendResponse(javax.servlet.http.HttpServletResponse resp, String response) throws IOException- Throws:
IOException
-
getSummaryInfo
protected void getSummaryInfo(StringBuilder response)
-
getStartedInfo
protected void getStartedInfo(StringBuilder response)
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
getOrRunHealthCheck
protected HealthCheckResult getOrRunHealthCheck(String probe)
-
-