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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCPU_PROFILE_ENABLED_PARAM_KEYstatic StringCPU_PROFILE_URI_PARAM_KEYstatic StringDEFAULT_CPU_PROFILE_URIstatic StringDEFAULT_HEALTHCHECK_URIstatic StringDEFAULT_METRICS_URIstatic StringDEFAULT_PING_URIstatic StringDEFAULT_THREADS_URIstatic StringHEALTHCHECK_ENABLED_PARAM_KEYstatic StringHEALTHCHECK_URI_PARAM_KEYstatic StringMETRICS_ENABLED_PARAM_KEYstatic StringMETRICS_URI_PARAM_KEYstatic StringPING_ENABLED_PARAM_KEYstatic StringPING_URI_PARAM_KEYstatic StringSERVICE_NAME_PARAM_KEYstatic StringTHREADS_ENABLED_PARAM_KEYstatic StringTHREADS_URI_PARAM_KEY
-
Constructor Summary
Constructors Constructor Description AdminServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, service
-
-
-
-
Field Detail
-
DEFAULT_HEALTHCHECK_URI
public static final String DEFAULT_HEALTHCHECK_URI
- See Also:
- Constant Field Values
-
DEFAULT_METRICS_URI
public static final String DEFAULT_METRICS_URI
- See Also:
- Constant Field Values
-
DEFAULT_PING_URI
public static final String DEFAULT_PING_URI
- See Also:
- Constant Field Values
-
DEFAULT_THREADS_URI
public static final String DEFAULT_THREADS_URI
- See Also:
- Constant Field Values
-
DEFAULT_CPU_PROFILE_URI
public static final String DEFAULT_CPU_PROFILE_URI
- See Also:
- Constant Field Values
-
METRICS_ENABLED_PARAM_KEY
public static final String METRICS_ENABLED_PARAM_KEY
- See Also:
- Constant Field Values
-
METRICS_URI_PARAM_KEY
public static final String METRICS_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
PING_ENABLED_PARAM_KEY
public static final String PING_ENABLED_PARAM_KEY
- See Also:
- Constant Field Values
-
PING_URI_PARAM_KEY
public static final String PING_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
THREADS_ENABLED_PARAM_KEY
public static final String THREADS_ENABLED_PARAM_KEY
- See Also:
- Constant Field Values
-
THREADS_URI_PARAM_KEY
public static final String THREADS_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
HEALTHCHECK_ENABLED_PARAM_KEY
public static final String HEALTHCHECK_ENABLED_PARAM_KEY
- See Also:
- Constant Field Values
-
HEALTHCHECK_URI_PARAM_KEY
public static final String HEALTHCHECK_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
SERVICE_NAME_PARAM_KEY
public static final String SERVICE_NAME_PARAM_KEY
- See Also:
- Constant Field Values
-
CPU_PROFILE_ENABLED_PARAM_KEY
public static final String CPU_PROFILE_ENABLED_PARAM_KEY
- See Also:
- Constant Field Values
-
CPU_PROFILE_URI_PARAM_KEY
public static final String CPU_PROFILE_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-