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 void
contextInitialized
(javax.servlet.ServletContextEvent event) protected final com.codahale.metrics.health.HealthCheckRegistry
Methods 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:
contextInitialized
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextInitialized
in classcom.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-
getHealthCheckRegistry
protected final com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()- Specified by:
getHealthCheckRegistry
in classcom.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-