Package com.bytedesk.ticket.config
Class TicketHealthIndicator
java.lang.Object
com.bytedesk.ticket.config.TicketHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
@Component
public class TicketHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Ticket模块健康检查
监控工单系统相关服务:Flowable工作流引擎、LDAP连接、数据库等
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSourceprivate booleanprivate intprivate Stringprivate org.flowable.engine.RepositoryServiceprivate org.flowable.engine.RuntimeService -
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
-
ldapEnabled
@Value("${bytedesk.ticket.ldap.enabled:false}") private boolean ldapEnabled -
ldapServer
-
ldapPort
@Value("${bytedesk.ticket.ldap.port:389}") private int ldapPort -
dataSource
-
repositoryService
@Autowired(required=false) private org.flowable.engine.RepositoryService repositoryService -
runtimeService
@Autowired(required=false) private org.flowable.engine.RuntimeService runtimeService
-
-
Constructor Details
-
TicketHealthIndicator
public TicketHealthIndicator()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-