public abstract static class HealthCheckServlet.ContextListener extends Object implements javax.servlet.ServletContextListener
| Constructor and Description |
|---|
ContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected ExecutorService |
getExecutorService() |
protected com.codahale.metrics.health.HealthCheckFilter |
getHealthCheckFilter() |
protected abstract com.codahale.metrics.health.HealthCheckRegistry |
getHealthCheckRegistry() |
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
protected abstract com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
HealthCheckRegistry to inject into the servlet context.protected ExecutorService getExecutorService()
ExecutorService to inject into the servlet context, or null
if the health checks should be run in the servlet worker thread.protected com.codahale.metrics.health.HealthCheckFilter getHealthCheckFilter()
HealthCheckFilter that shall be used to filter health checks,
or HealthCheckFilter.ALL if the default should be used.protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapper that shall be used to render health checks,
or null if the default object mapper should be used.public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2011. All rights reserved.