Package com.codahale.metrics.servlets
Class AdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.codahale.metrics.servlets.AdminServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class AdminServlet
extends javax.servlet.http.HttpServlet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) voidinit(javax.servlet.ServletConfig config) protected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
DEFAULT_HEALTHCHECK_URI
- See Also:
-
DEFAULT_METRICS_URI
- See Also:
-
DEFAULT_PING_URI
- See Also:
-
DEFAULT_THREADS_URI
- See Also:
-
DEFAULT_CPU_PROFILE_URI
- See Also:
-
METRICS_ENABLED_PARAM_KEY
- See Also:
-
METRICS_URI_PARAM_KEY
- See Also:
-
PING_ENABLED_PARAM_KEY
- See Also:
-
PING_URI_PARAM_KEY
- See Also:
-
THREADS_ENABLED_PARAM_KEY
- See Also:
-
THREADS_URI_PARAM_KEY
- See Also:
-
HEALTHCHECK_ENABLED_PARAM_KEY
- See Also:
-
HEALTHCHECK_URI_PARAM_KEY
- See Also:
-
SERVICE_NAME_PARAM_KEY
- See Also:
-
CPU_PROFILE_ENABLED_PARAM_KEY
- See Also:
-
CPU_PROFILE_URI_PARAM_KEY
- See Also:
-
-
Constructor Details
-
AdminServlet
public AdminServlet()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-