Class ServiceCombServiceRegistry

java.lang.Object
com.huaweicloud.servicecomb.discovery.registry.ServiceCombServiceRegistry
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>, org.springframework.context.ApplicationContextAware

public class ServiceCombServiceRegistry extends Object implements org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>, org.springframework.context.ApplicationContextAware
  • Constructor Details

    • ServiceCombServiceRegistry

      public ServiceCombServiceRegistry(DiscoveryBootstrapProperties discoveryBootstrapProperties, com.huaweicloud.common.event.ClosedEventListener closedEventListener, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, @Autowired(required=false) org.apache.servicecomb.service.center.client.ServiceCenterWatch watch)
  • Method Details

    • onMicroserviceInstanceRegistrationEvent

      public void onMicroserviceInstanceRegistrationEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.MicroserviceInstanceRegistrationEvent event)
    • register

      public void register(ServiceCombRegistration registration)
      Specified by:
      register in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
    • deregister

      public void deregister(ServiceCombRegistration registration)
      Specified by:
      deregister in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
    • close

      public void close()
      Specified by:
      close in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
    • setStatus

      public void setStatus(ServiceCombRegistration registration, String status)
      Specified by:
      setStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
    • getStatus

      public <T> T getStatus(ServiceCombRegistration registration)
      Specified by:
      getStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException