Class HealthCheckExecutorServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.felix.hc.core.impl.servlet.HealthCheckExecutorServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class HealthCheckExecutorServlet extends javax.servlet.http.HttpServlet
Servlet that triggers the health check executor to return results via http. Parameters:- tags: The health check tags to take into account
- format: html|json|jsonp|txt|verbose.txt
- includeDebug: If true, debug messages from result log are included.
- callback: For jsonp, the JS callback function name (defaults to "processHealthCheckResults")
- httpStatus: health check status to http status mapping in format httpStatus=WARN:418,CRITICAL:503,HEALTH_CHECK_ERROR:500.
Useful in combination with load balancers.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_SPLIT_REGEX
-
Constructor Summary
Constructors Constructor Description HealthCheckExecutorServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(org.apache.felix.hc.core.impl.servlet.HealthCheckExecutorServletConfiguration configuration)
void
deactivate()
protected void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathTokensStr, String format)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
PARAM_SPLIT_REGEX
public static final String PARAM_SPLIT_REGEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
protected final void activate(org.apache.felix.hc.core.impl.servlet.HealthCheckExecutorServletConfiguration configuration)
-
deactivate
public void deactivate()
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathTokensStr, String format) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
-