Package com.bytedesk.call.config
Class CallHealthIndicator
java.lang.Object
com.bytedesk.call.config.CallHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor
,org.springframework.boot.actuate.health.HealthIndicator
@Component
@ConditionalOnProperty(prefix="bytedesk.call.freeswitch",
name="enabled",
havingValue="true",
matchIfMissing=false)
public class CallHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Call健康检查器
为Spring Boot Actuator提供Call连接状态监控
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Field Details
-
freeSwitchProperties
-
-
Constructor Details
-
CallHealthIndicator
public CallHealthIndicator()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
health
in interfaceorg.springframework.boot.actuate.health.HealthIndicator
-
testNetworkConnection
private boolean testNetworkConnection()测试网络连接 -
getCurrentTime
获取当前时间字符串 -
getDetailedStatus
获取详细的连接状态信息
-