Class HealthCheckServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class HealthCheckServlet
    extends jakarta.servlet.http.HttpServlet
    See Also:
    Serialized Form
    • Field Detail

      • HEALTH_CHECK_REGISTRY

        public static final String HEALTH_CHECK_REGISTRY
      • HEALTH_CHECK_EXECUTOR

        public static final String HEALTH_CHECK_EXECUTOR
      • HEALTH_CHECK_FILTER

        public static final String HEALTH_CHECK_FILTER
    • Constructor Detail

      • HealthCheckServlet

        public HealthCheckServlet()
      • HealthCheckServlet

        public HealthCheckServlet​(com.codahale.metrics.health.HealthCheckRegistry registry)
    • Method Detail

      • init

        public void init​(jakarta.servlet.ServletConfig config)
                  throws jakarta.servlet.ServletException
        Specified by:
        init in interface jakarta.servlet.Servlet
        Overrides:
        init in class jakarta.servlet.GenericServlet
        Throws:
        jakarta.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface jakarta.servlet.Servlet
        Overrides:
        destroy in class jakarta.servlet.GenericServlet
      • 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