Package com.codahale.metrics.servlets
Class AdminServletContextListener
java.lang.Object
com.codahale.metrics.servlets.AdminServletContextListener
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
@Deprecated
public abstract class AdminServletContextListener
extends Object
implements javax.servlet.ServletContextListener
Deprecated.
A listener implementation which injects a
MetricRegistry
instance, a
HealthCheckRegistry
instance, and an optional ExecutorService
instance into the
servlet context as named attributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.void
contextInitialized
(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.protected ExecutorService
Deprecated.Returns theExecutorService
to inject into the servlet context, ornull
if the health checks should be run in the servlet worker thread.protected abstract HealthCheckRegistry
Deprecated.Returns theHealthCheckRegistry
to inject into the servlet context.protected abstract MetricRegistry
Deprecated.Returns theMetricRegistry
to inject into the servlet context.
-
Constructor Details
-
AdminServletContextListener
public AdminServletContextListener()Deprecated.
-
-
Method Details
-
getMetricRegistry
Deprecated.Returns theMetricRegistry
to inject into the servlet context. -
getHealthCheckRegistry
Deprecated.Returns theHealthCheckRegistry
to inject into the servlet context. -
getExecutorService
Deprecated.Returns theExecutorService
to inject into the servlet context, ornull
if the health checks should be run in the servlet worker thread. -
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
MetricsServlet.ContextListener
andHealthCheckServlet.ContextListener
instead.