Class AdminEnvironment


  • public class AdminEnvironment
    extends ServletEnvironment
    The administrative environment of a Dropwizard application.
    • Constructor Detail

      • AdminEnvironment

        public AdminEnvironment​(MutableServletContextHandler handler,
                                com.codahale.metrics.health.HealthCheckRegistry healthChecks,
                                com.codahale.metrics.MetricRegistry metricRegistry,
                                AdminFactory adminFactory)
        Creates a new AdminEnvironment.
        Parameters:
        handler - a servlet context handler
        healthChecks - a health check registry
    • Method Detail

      • addTask

        public void addTask​(Task task)
        Adds the given task to the set of tasks exposed via the admin interface.
        Parameters:
        task - a task
      • isHealthCheckServletEnabled

        public boolean isHealthCheckServletEnabled()