Package io.dropwizard.health
Class DefaultHealthFactory
java.lang.Object
io.dropwizard.health.DefaultHealthFactory
- All Implemented Interfaces:
HealthFactory,io.dropwizard.jackson.Discoverable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(io.dropwizard.lifecycle.setup.LifecycleEnvironment lifecycle, io.dropwizard.jetty.setup.ServletEnvironment servlets, io.dropwizard.jersey.setup.JerseyEnvironment jersey, HealthEnvironment health, com.fasterxml.jackson.databind.ObjectMapper mapper, String name) io.dropwizard.util.DurationbooleanbooleanbooleanvoidsetDelayedShutdownHandlerEnabled(boolean delayedShutdownHandlerEnabled) voidsetEnabled(boolean enabled) voidsetHealthCheckConfigurations(List<HealthCheckConfiguration> healthChecks) voidsetHealthCheckUrlPaths(List<String> healthCheckUrlPaths) voidsetHealthResponderFactory(HealthResponderFactory healthResponderFactory) voidsetHealthResponseProviderFactory(HealthResponseProviderFactory healthResponseProviderFactory) voidsetInitialOverallState(boolean initialOverallState) voidsetShutdownWaitPeriod(io.dropwizard.util.Duration shutdownWaitPeriod)
-
Constructor Details
-
DefaultHealthFactory
public DefaultHealthFactory()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getHealthCheckConfigurations
-
setHealthCheckConfigurations
-
isInitialOverallState
public boolean isInitialOverallState() -
setInitialOverallState
public void setInitialOverallState(boolean initialOverallState) -
isDelayedShutdownHandlerEnabled
public boolean isDelayedShutdownHandlerEnabled() -
setDelayedShutdownHandlerEnabled
public void setDelayedShutdownHandlerEnabled(boolean delayedShutdownHandlerEnabled) -
getShutdownWaitPeriod
public io.dropwizard.util.Duration getShutdownWaitPeriod() -
setShutdownWaitPeriod
public void setShutdownWaitPeriod(io.dropwizard.util.Duration shutdownWaitPeriod) -
getHealthCheckUrlPaths
-
setHealthCheckUrlPaths
-
getHealthResponseProviderFactory
-
setHealthResponseProviderFactory
public void setHealthResponseProviderFactory(HealthResponseProviderFactory healthResponseProviderFactory) -
getHealthResponderFactory
-
setHealthResponderFactory
-
configure
public void configure(io.dropwizard.lifecycle.setup.LifecycleEnvironment lifecycle, io.dropwizard.jetty.setup.ServletEnvironment servlets, io.dropwizard.jersey.setup.JerseyEnvironment jersey, HealthEnvironment health, com.fasterxml.jackson.databind.ObjectMapper mapper, String name) - Specified by:
configurein interfaceHealthFactory
-