public class ServiceCombServiceRegistry extends Object implements org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
ServiceCombServiceRegistry(DiscoveryBootstrapProperties discoveryBootstrapProperties,
org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient,
org.apache.servicecomb.service.center.client.ServiceCenterWatch watch) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deregister(ServiceCombRegistration registration) |
String |
getStatus(ServiceCombRegistration registration) |
void |
onMicroserviceInstanceRegistrationEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.MicroserviceInstanceRegistrationEvent event) |
void |
register(ServiceCombRegistration registration) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setStatus(ServiceCombRegistration registration,
String status) |
public ServiceCombServiceRegistry(DiscoveryBootstrapProperties discoveryBootstrapProperties, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, @Autowired(required=false) org.apache.servicecomb.service.center.client.ServiceCenterWatch watch)
public void onMicroserviceInstanceRegistrationEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.MicroserviceInstanceRegistrationEvent event)
public void register(ServiceCombRegistration registration)
register in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>public void deregister(ServiceCombRegistration registration)
deregister in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>public void close()
close in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>public void setStatus(ServiceCombRegistration registration, String status)
setStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>public String getStatus(ServiceCombRegistration registration)
getStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2023 Pivotal Software, Inc.. All rights reserved.