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 and Description |
---|---|
static class |
MonitorServlet.Configuration
The monitor servlet access token configuration.
|
Modifier and Type | Field and 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 and Description |
---|
MonitorServlet() |
Modifier and Type | Method and 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) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
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 © 2021 Connect2id. All rights reserved.