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连接状态监控
  • Field Details

  • Constructor Details

    • CallHealthIndicator

      public CallHealthIndicator()
  • Method Details

    • health

      public org.springframework.boot.actuate.health.Health health()
      Specified by:
      health in interface org.springframework.boot.actuate.health.HealthIndicator
    • testNetworkConnection

      private boolean testNetworkConnection()
      测试网络连接
    • getCurrentTime

      private String getCurrentTime()
      获取当前时间字符串
    • getDetailedStatus

      public CallHealthIndicator.ConnectionStatus getDetailedStatus()
      获取详细的连接状态信息