类 ServiceCheckControl

java.lang.Object
top.codef.microservice.control.ServiceCheckControl
所有已实现的接口:
org.springframework.beans.factory.DisposableBean

public class ServiceCheckControl extends Object implements org.springframework.beans.factory.DisposableBean
  • 构造器详细资料

    • ServiceCheckControl

      public ServiceCheckControl(org.springframework.scheduling.TaskScheduler taskScheduler, ServiceMonitorProperties serviceMonitorProperties, org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, HealthCheckHandler healthCheckHandler)
  • 方法详细资料

    • destroy

      public void destroy() throws Exception
      指定者:
      destroy 在接口中 org.springframework.beans.factory.DisposableBean
      抛出:
      Exception
    • add

      public void add(@NonNull String service, @NonNull ServiceCheck serviceCheck)
    • getTaskResultMap

      public Map<String,ScheduledFuture<?>> getTaskResultMap()
    • setTaskResultMap

      public void setTaskResultMap(Map<String,ScheduledFuture<?>> taskResultMap)
    • getTaskScheduler

      public org.springframework.scheduling.TaskScheduler getTaskScheduler()
      返回:
      the taskScheduler
    • getDiscoveryClient

      public org.springframework.cloud.client.discovery.DiscoveryClient getDiscoveryClient()
      返回:
      the discoveryClient
    • getApplicationEventPublisher

      public org.springframework.context.ApplicationEventPublisher getApplicationEventPublisher()
      返回:
      the applicationEventPublisher
    • getHealthCheckHandler

      public HealthCheckHandler getHealthCheckHandler()
      返回:
      the healthCheckHandler