Class HealthCheckRegistryContextListener

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.ServletContextListener

    public class HealthCheckRegistryContextListener
    extends com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
    Allows the AdminServlet to get access to the MetricRegistry so it can display the statistics via the admin servlet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contextInitialized​(javax.servlet.ServletContextEvent event)  
      protected com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()  
      • Methods inherited from class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener

        contextDestroyed, getExecutorService, getHealthCheckFilter, getObjectMapper
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HealthCheckRegistryContextListener

        public HealthCheckRegistryContextListener()
    • Method Detail

      • contextInitialized

        public final void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
      • getHealthCheckRegistry

        protected final com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
        Specified by:
        getHealthCheckRegistry in class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener