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.ServletContextListenerDeprecated.UseMetricsServlet.ContextListenerandHealthCheckServlet.ContextListenerinstead.A listener implementation which injects aMetricRegistryinstance, aHealthCheckRegistryinstance, and an optionalExecutorServiceinstance 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 voidcontextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)Deprecated.voidcontextInitialized(javax.servlet.ServletContextEvent servletContextEvent)Deprecated.protected java.util.concurrent.ExecutorServicegetExecutorService()Deprecated.Returns theExecutorServiceto inject into the servlet context, ornullif the health checks should be run in the servlet worker thread.protected abstract HealthCheckRegistrygetHealthCheckRegistry()Deprecated.Returns theHealthCheckRegistryto inject into the servlet context.protected abstract MetricRegistrygetMetricRegistry()Deprecated.Returns theMetricRegistryto inject into the servlet context.
-
-
-
Method Detail
-
getMetricRegistry
protected abstract MetricRegistry getMetricRegistry()
Deprecated.Returns theMetricRegistryto inject into the servlet context.
-
getHealthCheckRegistry
protected abstract HealthCheckRegistry getHealthCheckRegistry()
Deprecated.Returns theHealthCheckRegistryto inject into the servlet context.
-
getExecutorService
protected java.util.concurrent.ExecutorService 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
-
-