Class StatusServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.nuxeo.ecm.core.management.statuses.StatusServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class StatusServlet
extends jakarta.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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected HealthCheckResultgetOrRunHealthCheck(String probe) protected voidgetStartedInfo(StringBuilder response) protected voidgetSummaryInfo(StringBuilder response) voidinit()protected voidsendHealthCheckResponse(jakarta.servlet.http.HttpServletResponse resp, HealthCheckResult result) protected voidsendResponse(jakarta.servlet.http.HttpServletResponse resp, String response) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, 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(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
sendHealthCheckResponse
protected void sendHealthCheckResponse(jakarta.servlet.http.HttpServletResponse resp, HealthCheckResult result) throws IOException - Throws:
IOException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
sendResponse
protected void sendResponse(jakarta.servlet.http.HttpServletResponse resp, String response) throws IOException - Throws:
IOException
-
getSummaryInfo
-
getStartedInfo
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
getOrRunHealthCheck
-