Class ServiceCombServiceRegistry
java.lang.Object
com.huaweicloud.servicecomb.discovery.registry.ServiceCombServiceRegistry
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>,org.springframework.context.ApplicationContextAware
public class ServiceCombServiceRegistry
extends Object
implements org.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>, org.springframework.context.ApplicationContextAware
-
Constructor Summary
ConstructorsConstructorDescriptionServiceCombServiceRegistry(DiscoveryBootstrapProperties discoveryBootstrapProperties, com.huaweicloud.common.event.ClosedEventListener closedEventListener, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, org.apache.servicecomb.service.center.client.ServiceCenterWatch watch) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidderegister(ServiceCombRegistration registration) <T> TgetStatus(ServiceCombRegistration registration) voidonMicroserviceInstanceRegistrationEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.MicroserviceInstanceRegistrationEvent event) voidregister(ServiceCombRegistration registration) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetStatus(ServiceCombRegistration registration, String status)
-
Constructor Details
-
ServiceCombServiceRegistry
public ServiceCombServiceRegistry(DiscoveryBootstrapProperties discoveryBootstrapProperties, com.huaweicloud.common.event.ClosedEventListener closedEventListener, org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient, @Autowired(required=false) org.apache.servicecomb.service.center.client.ServiceCenterWatch watch)
-
-
Method Details
-
onMicroserviceInstanceRegistrationEvent
public void onMicroserviceInstanceRegistrationEvent(org.apache.servicecomb.service.center.client.RegistrationEvents.MicroserviceInstanceRegistrationEvent event) -
register
- Specified by:
registerin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
-
deregister
- Specified by:
deregisterin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
-
close
public void close()- Specified by:
closein interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
-
setStatus
- Specified by:
setStatusin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
-
getStatus
- Specified by:
getStatusin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<ServiceCombRegistration>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-