Package com.bytedesk.voc.config
Class VocHealthIndicator
java.lang.Object
com.bytedesk.voc.config.VocHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
@Component
public class VocHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
VOC模块健康检查
监控用户反馈(Voice of Customer)系统相关服务:数据库、搜索引擎等
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSourceprivate org.springframework.data.elasticsearch.core.ElasticsearchOperations -
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
-
dataSource
-
elasticsearchOperations
@Autowired(required=false) private org.springframework.data.elasticsearch.core.ElasticsearchOperations elasticsearchOperations
-
-
Constructor Details
-
VocHealthIndicator
public VocHealthIndicator()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-