Serializable
, javax.servlet.Servlet
, javax.servlet.ServletConfig
public class MonitorServlet extends com.codahale.metrics.servlets.AdminServlet
The access token is defined by a
Java property
obtained
from 1) system properties or from 2) a properties file specified by
servlet context parameter
.
Modifier and Type | Class | Description |
---|---|---|
static class |
MonitorServlet.Configuration |
The monitor servlet access token configuration.
|
Modifier and Type | Field | Description |
---|---|---|
protected MasterAccessTokenValidator |
tokenValidator |
The access token validator.
|
CPU_PROFILE_URI_PARAM_KEY, DEFAULT_CPU_PROFILE_URI, DEFAULT_HEALTHCHECK_URI, DEFAULT_METRICS_URI, DEFAULT_PING_URI, DEFAULT_THREADS_URI, HEALTHCHECK_URI_PARAM_KEY, METRICS_URI_PARAM_KEY, PING_URI_PARAM_KEY, SERVICE_NAME_PARAM_KEY, THREADS_URI_PARAM_KEY
Constructor | Description |
---|---|
MonitorServlet() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
|
void |
init(javax.servlet.ServletConfig config) |
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
protected MasterAccessTokenValidator tokenValidator
public MonitorServlet()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class com.codahale.metrics.servlets.AdminServlet
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class com.codahale.metrics.servlets.AdminServlet
javax.servlet.ServletException
IOException
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
service
in class com.codahale.metrics.servlets.AdminServlet
javax.servlet.ServletException
IOException
Copyright © 2018 Connect2id. All rights reserved.