MetricsServlet.ContextListener
and
HealthCheckServlet.ContextListener
instead.@Deprecated public abstract class AdminServletContextListener extends Object implements javax.servlet.ServletContextListener
MetricRegistry
instance, a
HealthCheckRegistry
instance, and an optional ExecutorService
instance into the
servlet context as named attributes.Constructor and Description |
---|
AdminServletContextListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Deprecated.
|
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Deprecated.
|
protected ExecutorService |
getExecutorService()
Deprecated.
|
protected abstract HealthCheckRegistry |
getHealthCheckRegistry()
Deprecated.
|
protected abstract MetricRegistry |
getMetricRegistry()
Deprecated.
|
protected abstract MetricRegistry getMetricRegistry()
MetricRegistry
to inject into the servlet context.protected abstract 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.public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2014. All Rights Reserved.