Package org.mapfish.print.metrics
Class HealthCheckRegistryContextListener
- java.lang.Object
-
- com.codahale.metrics.servlets.HealthCheckServlet.ContextListener
-
- org.mapfish.print.metrics.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.
-
-
Constructor Summary
Constructors Constructor Description HealthCheckRegistryContextListener()
-
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()
-
-
-
Method Detail
-
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
-
-