Package com.bytedesk.kbase.config
Class KbaseHealthIndicator
java.lang.Object
com.bytedesk.kbase.config.KbaseHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
@Component
public class KbaseHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Kbase模块健康检查
监控知识库系统相关服务:数据库、向量存储(Elasticsearch)、批处理等
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate DataSourceprivate org.springframework.ai.vectorstore.elasticsearch.ElasticsearchVectorStoreprivate booleanprivate String -
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
-
vectorStoreEnabled
@Value("${spring.ai.vectorstore.elasticsearch.enabled:false}") private boolean vectorStoreEnabled -
vectorStoreIndexName
@Value("${spring.ai.vectorstore.elasticsearch.index-name:bytedesk_vector}") private String vectorStoreIndexName -
batchJobEnabled
@Value("${spring.batch.job.enabled:true}") private boolean batchJobEnabled -
dataSource
-
elasticsearchVectorStore
@Autowired(required=false) private org.springframework.ai.vectorstore.elasticsearch.ElasticsearchVectorStore elasticsearchVectorStore
-
-
Constructor Details
-
KbaseHealthIndicator
public KbaseHealthIndicator()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-