Package com.alibaba.cloud.nacos.registry
Class NacosServiceRegistry
java.lang.Object
com.alibaba.cloud.nacos.registry.NacosServiceRegistry
- All Implemented Interfaces:
org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
public class NacosServiceRegistry
extends Object
implements org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
Constructor Summary
ConstructorsConstructorDescriptionNacosServiceRegistry(NacosServiceManager nacosServiceManager, NacosDiscoveryProperties nacosDiscoveryProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidderegister(org.springframework.cloud.client.serviceregistry.Registration registration) getStatus(org.springframework.cloud.client.serviceregistry.Registration registration) voidregister(org.springframework.cloud.client.serviceregistry.Registration registration) voidsetStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status)
-
Constructor Details
-
NacosServiceRegistry
public NacosServiceRegistry(NacosServiceManager nacosServiceManager, NacosDiscoveryProperties nacosDiscoveryProperties)
-
-
Method Details
-
register
public void register(org.springframework.cloud.client.serviceregistry.Registration registration) - Specified by:
registerin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
deregister
public void deregister(org.springframework.cloud.client.serviceregistry.Registration registration) - Specified by:
deregisterin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
close
public void close()- Specified by:
closein interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
setStatus
public void setStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status) - Specified by:
setStatusin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
getStatus
- Specified by:
getStatusin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-