/** * Runs the registered health checks and returns a map of the results. * * @return a map of the health check results */ public static Map<String, Result> runHealthChecks() { return DEFAULT_REGISTRY.runHealthChecks(); }
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { final Map<String, HealthCheck.Result> results = registry.runHealthChecks(); resp.setContentType(CONTENT_TYPE); resp.setHeader("Cache-Control", "must-revalidate,no-cache,no-store");