Package io.dropwizard.metrics5.servlets
Class AdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
io.dropwizard.metrics5.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_URI_PARAM_KEYstatic StringDEFAULT_CPU_PROFILE_URIstatic StringDEFAULT_HEALTHCHECK_URIstatic StringDEFAULT_METRICS_URIstatic StringDEFAULT_PING_URIstatic StringDEFAULT_THREADS_URIstatic StringHEALTHCHECK_URI_PARAM_KEYstatic StringMETRICS_URI_PARAM_KEYstatic StringPING_URI_PARAM_KEYstatic StringSERVICE_NAME_PARAM_KEYstatic StringTHREADS_URI_PARAM_KEY -
Constructor Summary
Constructors Constructor Description AdminServlet() -
Method Summary
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, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
DEFAULT_HEALTHCHECK_URI
- See Also:
- Constant Field Values
-
DEFAULT_METRICS_URI
- See Also:
- Constant Field Values
-
DEFAULT_PING_URI
- See Also:
- Constant Field Values
-
DEFAULT_THREADS_URI
- See Also:
- Constant Field Values
-
DEFAULT_CPU_PROFILE_URI
- See Also:
- Constant Field Values
-
METRICS_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
PING_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
THREADS_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
HEALTHCHECK_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
SERVICE_NAME_PARAM_KEY
- See Also:
- Constant Field Values
-
CPU_PROFILE_URI_PARAM_KEY
- See Also:
- Constant Field Values
-
-
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
-