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 TypeMethodDescriptionvoidcontextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.voidcontextInitialized(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.protected ExecutorServiceDeprecated.Returns theExecutorServiceto inject into the servlet context, ornullif the health checks should be run in the servlet worker thread.protected abstract HealthCheckRegistryDeprecated.Returns theHealthCheckRegistryto inject into the servlet context.protected abstract MetricRegistryDeprecated.Returns theMetricRegistryto inject into the servlet context.
-
Constructor Details
-
AdminServletContextListener
public AdminServletContextListener()Deprecated.
-
-
Method Details
-
getMetricRegistry
Deprecated.Returns theMetricRegistryto inject into the servlet context. -
getHealthCheckRegistry
Deprecated.Returns theHealthCheckRegistryto inject into the servlet context. -
getExecutorService
Deprecated.Returns theExecutorServiceto inject into the servlet context, ornullif the health checks should be run in the servlet worker thread. -
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) Deprecated.- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
MetricsServlet.ContextListenerandHealthCheckServlet.ContextListenerinstead.