Class ConfigServerHealthIndicator
java.lang.Object
org.springframework.boot.health.contributor.AbstractHealthIndicator
org.springframework.cloud.config.server.config.ConfigServerHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.health.contributor.HealthContributor, org.springframework.boot.health.contributor.HealthIndicator
@ConfigurationProperties("spring.cloud.config.server.health")
public class ConfigServerHealthIndicator
extends org.springframework.boot.health.contributor.AbstractHealthIndicator
- Author:
- Spencer Gibb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepository properties. -
Constructor Summary
ConstructorsConstructorDescriptionConfigServerHealthIndicator(EnvironmentRepository environmentRepository, ConfigServerProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(org.springframework.boot.health.contributor.Health.Builder builder) voidinit()booleanvoidsetAcceptEmpty(boolean acceptEmpty) voidsetDownHealthStatus(String downHealthStatus) voidsetRepositories(Map<String, ConfigServerHealthIndicator.Repository> repositories) Methods inherited from class org.springframework.boot.health.contributor.AbstractHealthIndicator
healthMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.health.contributor.HealthIndicator
health
-
Constructor Details
-
ConfigServerHealthIndicator
@Autowired public ConfigServerHealthIndicator(EnvironmentRepository environmentRepository, ConfigServerProperties properties)
-
-
Method Details
-
init
@PostConstruct public void init() -
doHealthCheck
protected void doHealthCheck(org.springframework.boot.health.contributor.Health.Builder builder) - Specified by:
doHealthCheckin classorg.springframework.boot.health.contributor.AbstractHealthIndicator
-
getRepositories
-
setRepositories
-
getDownHealthStatus
-
setDownHealthStatus
-
isAcceptEmpty
public boolean isAcceptEmpty() -
setAcceptEmpty
public void setAcceptEmpty(boolean acceptEmpty)
-