Package com.codahale.metrics.servlets
Class AdminServletContextListener
- java.lang.Object
-
- com.codahale.metrics.servlets.AdminServletContextListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.ServletContextListener
@Deprecated public abstract class AdminServletContextListener extends java.lang.Object implements javax.servlet.ServletContextListener
Deprecated.UseMetricsServlet.ContextListener
andHealthCheckServlet.ContextListener
instead.A listener implementation which injects aMetricRegistry
instance, aHealthCheckRegistry
instance, and an optionalExecutorService
instance into the servlet context as named attributes.
-
-
Constructor Summary
Constructors Constructor Description AdminServletContextListener()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Deprecated.void
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Deprecated.protected java.util.concurrent.ExecutorService
getExecutorService()
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
getHealthCheckRegistry()
Deprecated.Returns theHealthCheckRegistry
to inject into the servlet context.protected abstract MetricRegistry
getMetricRegistry()
Deprecated.Returns theMetricRegistry
to inject into the servlet context.
-
-
-
Method Detail
-
getMetricRegistry
protected abstract MetricRegistry getMetricRegistry()
Deprecated.Returns theMetricRegistry
to inject into the servlet context.
-
getHealthCheckRegistry
protected abstract HealthCheckRegistry getHealthCheckRegistry()
Deprecated.Returns theHealthCheckRegistry
to inject into the servlet context.
-
getExecutorService
protected java.util.concurrent.ExecutorService 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
-
-