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
-
Field Summary
Fields inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient
DEFAULT_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionServiceCombDiscoveryClient(BootstrapProperties bootstrapProperties, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, ServiceCombRegistration serviceCombRegistration) -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.cloud.client.ServiceInstance>getInstances(String serviceId) intgetOrder()voidonHeartBeatEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.HeartBeatEvent event) voidonInstanceChangedEvent(org.apache.servicecomb.service.center.client.DiscoveryEvents.InstanceChangedEvent event) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) 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.discovery.DiscoveryClient
probe
-
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
- Specified by:
descriptionin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient
-
getInstances
- Specified by:
getInstancesin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient
-
getServices
- Specified by:
getServicesin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-