Class DatabaseConnectionHealthCheck
java.lang.Object
es.kukenan.smartfi.microservice.onboarding.health.KukenbankHealthCheck
es.kukenan.smartfi.microservice.onboarding.health.DatabaseConnectionHealthCheck
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
Database Connection Health Check .
-
Field Summary
Fields inherited from class es.kukenan.smartfi.microservice.onboarding.health.KukenbankHealthCheck
databasePassword, databaseUrl, databaseUser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ConnectionGets the connection.org.springframework.boot.actuate.health.Healthhealth()Get Health.Methods inherited from class es.kukenan.smartfi.microservice.onboarding.health.KukenbankHealthCheck
setApplicationPropertiesMethods 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
-
DatabaseConnectionHealthCheck
public DatabaseConnectionHealthCheck()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()Get Health.- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator- Overrides:
healthin classKukenbankHealthCheck- Returns:
- Heatlth from service.
-
getConnection
Gets the connection.- Returns:
- the connection
- Throws:
ClassNotFoundException- the class not found exceptionSQLException- the SQL exception
-