Class DbHealthIndicator
java.lang.Object
com.sap.cloud.spring.boot.mt.config.DbHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
@Configuration("dbHealthIndicator")
@ConfigurationProperties("com.sap.mt")
@ConditionalOnClass(org.springframework.boot.actuate.health.HealthIndicator.class)
@ConditionalOnProperty(name="com.sap.mt.enabled",
matchIfMissing=true)
@ConditionalOnEnabledHealthIndicator("db")
public class DbHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
-
Constructor Summary
ConstructorsConstructorDescriptionDbHealthIndicator(TenantAwareDataSource dataSource, Config config, DbIdentifiers dbIdentifiers) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.actuate.health.Healthhealth()voidsetHealthDummySelect(String healthDummySelect) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
DbHealthIndicator
public DbHealthIndicator(TenantAwareDataSource dataSource, Config config, DbIdentifiers dbIdentifiers)
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-
setHealthDummySelect
-