Package com.bytedesk.core.config
Class CoreHealthIndicator
java.lang.Object
com.bytedesk.core.config.CoreHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
@Component
public class CoreHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Core模块健康检查
监控核心服务依赖:数据库、Redis、应用版本等
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate DatabaseTypeCheckerprivate DataSourceprivate org.springframework.data.redis.connection.RedisConnectionFactory -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
appVersion
-
activeProfile
-
dataSource
-
redisConnectionFactory
@Autowired(required=false) private org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory -
databaseTypeChecker
-
-
Constructor Details
-
CoreHealthIndicator
public CoreHealthIndicator()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-