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 Summary
ConstructorsConstructorDescriptionServiceCombRegistration(BootstrapProperties bootstrapProperties, DiscoveryProperties discoveryProperties) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.ServiceInstance
getScheme
-
Constructor Details
-
ServiceCombRegistration
public ServiceCombRegistration(BootstrapProperties bootstrapProperties, DiscoveryProperties discoveryProperties)
-
-
Method Details
-
getDiscoveryBootstrapProperties
-
getMicroserviceInstance
public org.apache.servicecomb.service.center.client.model.MicroserviceInstance getMicroserviceInstance() -
getMicroservice
public org.apache.servicecomb.service.center.client.model.Microservice getMicroservice() -
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-