Package org.mapfish.print.metrics
Class HealthCheckRegistryContextListener
java.lang.Object
com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
org.mapfish.print.metrics.HealthCheckRegistryContextListener
- All Implemented Interfaces:
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcontextInitialized(javax.servlet.ServletContextEvent event) protected final com.codahale.metrics.health.HealthCheckRegistryMethods inherited from class com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
contextDestroyed, getExecutorService, getHealthCheckFilter, getObjectMapper
-
Constructor Details
-
HealthCheckRegistryContextListener
public HealthCheckRegistryContextListener()
-
-
Method Details
-
contextInitialized
public final void contextInitialized(javax.servlet.ServletContextEvent event) - Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Overrides:
contextInitializedin classcom.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-
getHealthCheckRegistry
protected final com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()- Specified by:
getHealthCheckRegistryin classcom.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-