public class ServiceCombDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
ServiceCombDiscoveryClient(DiscoveryBootstrapProperties discoveryProperties,
org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient,
ServiceCombRegistration serviceCombRegistration) |
| Modifier and Type | Method and Description |
|---|---|
String |
description() |
List<org.springframework.cloud.client.ServiceInstance> |
getInstances(String serviceId) |
List<String> |
getServices() |
void |
onHeartBeatEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.HeartBeatEvent event) |
void |
onInstanceChangedEvent(org.apache.servicecomb.service.center.client.DiscoveryEvents.InstanceChangedEvent event) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
public ServiceCombDiscoveryClient(DiscoveryBootstrapProperties discoveryProperties, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, ServiceCombRegistration serviceCombRegistration)
public void onHeartBeatEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.HeartBeatEvent event)
public void onInstanceChangedEvent(org.apache.servicecomb.service.center.client.DiscoveryEvents.InstanceChangedEvent event)
public String description()
description in interface org.springframework.cloud.client.discovery.DiscoveryClientpublic List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
getInstances in interface org.springframework.cloud.client.discovery.DiscoveryClientpublic List<String> getServices()
getServices in interface org.springframework.cloud.client.discovery.DiscoveryClientpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareCopyright © 2023 Pivotal Software, Inc.. All rights reserved.