Class ServiceCombRegistration

java.lang.Object
com.huaweicloud.servicecomb.discovery.registry.ServiceCombRegistration
All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance, org.springframework.cloud.client.serviceregistry.Registration

public class ServiceCombRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration
Spring Cloud Registration 实现。 Spring Cloud Registration的注册过程要求 serviceId 是预先分配好的,service center的注册过程 serviceId 是注册成功 分配的, 两个过程不一样。因此 Registration 只是一个空的实现, 不能够使用, 相关信息在 ServiceRegistry 的实现里面提供。
  • Constructor Details

  • Method Details

    • getDiscoveryBootstrapProperties

      public DiscoveryBootstrapProperties getDiscoveryBootstrapProperties()
    • getMicroserviceInstance

      public org.apache.servicecomb.service.center.client.model.MicroserviceInstance getMicroserviceInstance()
    • getMicroservice

      public org.apache.servicecomb.service.center.client.model.Microservice getMicroservice()
    • getServiceId

      public String getServiceId()
      Specified by:
      getServiceId in interface org.springframework.cloud.client.ServiceInstance
    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface org.springframework.cloud.client.ServiceInstance
    • getHost

      public String getHost()
      Specified by:
      getHost in interface org.springframework.cloud.client.ServiceInstance
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.springframework.cloud.client.ServiceInstance
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface org.springframework.cloud.client.ServiceInstance
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface org.springframework.cloud.client.ServiceInstance
    • getMetadata

      public Map<String,String> getMetadata()
      Specified by:
      getMetadata in interface org.springframework.cloud.client.ServiceInstance