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 Details

  • 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:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • 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:
      doPost in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • sendResponse

      protected void sendResponse(jakarta.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 jakarta.servlet.ServletException
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
    • getOrRunHealthCheck

      protected HealthCheckResult getOrRunHealthCheck(String probe)