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 TypeFieldDescriptionprivate static final String
static final String
static final String
static final String
static final String
private HealthCheckServlet
private String
private MetricsServlet
private String
private PingServlet
private String
private static final long
private String
private static final String
private ThreadDumpServlet
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) private static String
void
init
(javax.servlet.ServletConfig config) protected void
service
(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
Methods 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:
-
TEMPLATE
-
CONTENT_TYPE
- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
healthCheckServlet
-
metricsServlet
-
pingServlet
-
threadDumpServlet
-
metricsUri
-
pingUri
-
threadsUri
-
healthcheckUri
-
serviceName
-
-
Constructor Details
-
AdminServlet
public AdminServlet()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in 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:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
getParam
-