Class ServiceCombDiscoveryClient

java.lang.Object
com.huaweicloud.servicecomb.discovery.discovery.ServiceCombDiscoveryClient
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.context.ApplicationEventPublisherAware, org.springframework.core.Ordered

public class ServiceCombDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.context.ApplicationEventPublisherAware
  • Constructor Details

    • ServiceCombDiscoveryClient

      public ServiceCombDiscoveryClient(BootstrapProperties bootstrapProperties, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, ServiceCombRegistration serviceCombRegistration)
  • Method Details

    • onHeartBeatEvent

      public void onHeartBeatEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.HeartBeatEvent event)
    • onInstanceChangedEvent

      public void onInstanceChangedEvent(org.apache.servicecomb.service.center.client.DiscoveryEvents.InstanceChangedEvent event)
    • description

      public String description()
      Specified by:
      description in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getInstances

      public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
      Specified by:
      getInstances in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getServices

      public List<String> getServices()
      Specified by:
      getServices in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.cloud.client.discovery.DiscoveryClient
      Specified by:
      getOrder in interface org.springframework.core.Ordered