Package io.dropwizard.core.setup
Class AdminEnvironment
java.lang.Object
io.dropwizard.jetty.setup.ServletEnvironment
io.dropwizard.core.setup.AdminEnvironment
The administrative environment of a Dropwizard application.
-
Constructor Summary
ConstructorsConstructorDescriptionAdminEnvironment
(MutableServletContextHandler handler, com.codahale.metrics.health.HealthCheckRegistry healthChecks, com.codahale.metrics.MetricRegistry metricRegistry, AdminFactory adminFactory) Creates a newAdminEnvironment
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given task to the set of tasks exposed via the admin interface.boolean
Methods inherited from class io.dropwizard.jetty.setup.ServletEnvironment
addFilter, addFilter, addMimeMapping, addServlet, addServlet, addServletListeners, setBaseResource, setBaseResource, setBaseResource, setInitParameter, setProtectedTargets, setResourceBase, setSecurityHandler, setSessionHandler
-
Constructor Details
-
AdminEnvironment
public AdminEnvironment(MutableServletContextHandler handler, com.codahale.metrics.health.HealthCheckRegistry healthChecks, com.codahale.metrics.MetricRegistry metricRegistry, AdminFactory adminFactory) Creates a newAdminEnvironment
.- Parameters:
handler
- a servlet context handlerhealthChecks
- a health check registry
-
-
Method Details
-
addTask
Adds the given task to the set of tasks exposed via the admin interface.- Parameters:
task
- a task
-
isHealthCheckServletEnabled
public boolean isHealthCheckServletEnabled()
-