public interface NamingMaintainService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createService(Service service,
AbstractSelector selector)
create service to Nacos.
|
void |
createService(String serviceName)
create service to Nacos.
|
void |
createService(String serviceName,
String groupName)
create service to Nacos.
|
void |
createService(String serviceName,
String groupName,
float protectThreshold)
create service to Nacos.
|
void |
createService(String serviceName,
String groupName,
float protectThreshold,
String expression)
create service to Nacos.
|
boolean |
deleteService(String serviceName)
delete service from Nacos.
|
boolean |
deleteService(String serviceName,
String groupName)
delete service from Nacos.
|
Service |
queryService(String serviceName)
query service.
|
Service |
queryService(String serviceName,
String groupName)
query service.
|
void |
shutDown()
Shutdown the resource service.
|
void |
updateInstance(String serviceName,
Instance instance)
update instance info.
|
void |
updateInstance(String serviceName,
String groupName,
Instance instance)
update instance info.
|
void |
updateService(Service service,
AbstractSelector selector)
update service to Nacos with selector.
|
void |
updateService(String serviceName,
String groupName,
float protectThreshold)
update service to Nacos.
|
void |
updateService(String serviceName,
String groupName,
float protectThreshold,
Map<String,String> metadata)
update service to Nacos.
|
void updateInstance(String serviceName, Instance instance) throws NacosException
serviceName - service nameinstance - instanceNacosException - nacos exceptionvoid updateInstance(String serviceName, String groupName, Instance instance) throws NacosException
serviceName - service namegroupName - group nameinstance - instanceNacosException - nacos exceptionService queryService(String serviceName) throws NacosException
serviceName - service nameNacosException - nacos exceptionService queryService(String serviceName, String groupName) throws NacosException
serviceName - service namegroupName - group nameNacosException - nacos exceptionvoid createService(String serviceName) throws NacosException
serviceName - name of serviceNacosException - nacos exceptionvoid createService(String serviceName, String groupName) throws NacosException
serviceName - name of servicegroupName - group of serviceNacosException - nacos exceptionvoid createService(String serviceName, String groupName, float protectThreshold) throws NacosException
serviceName - name of servicegroupName - group of serviceprotectThreshold - protectThreshold of serviceNacosException - nacos exceptionvoid createService(String serviceName, String groupName, float protectThreshold, String expression) throws NacosException
serviceName - name of servicegroupName - group of serviceprotectThreshold - protectThreshold of serviceexpression - expression of selectorNacosException - nacos exceptionvoid createService(Service service, AbstractSelector selector) throws NacosException
service - name of serviceselector - selectorNacosException - nacos exceptionboolean deleteService(String serviceName) throws NacosException
serviceName - name of serviceNacosException - nacos exceptionboolean deleteService(String serviceName, String groupName) throws NacosException
serviceName - name of servicegroupName - group of serviceNacosException - nacos exceptionvoid updateService(String serviceName, String groupName, float protectThreshold) throws NacosException
serviceName - name of servicegroupName - group of serviceprotectThreshold - protectThreshold of serviceNacosException - nacos exceptionvoid updateService(String serviceName, String groupName, float protectThreshold, Map<String,String> metadata) throws NacosException
serviceName - name of servicegroupName - group of serviceprotectThreshold - protectThreshold of servicemetadata - metadata of serviceNacosException - nacos exceptionvoid updateService(Service service, AbstractSelector selector) throws NacosException
service - Service pojo of serviceselector - AbstractSelector pojo of selectorNacosException - nacos exceptionvoid shutDown()
throws NacosException
NacosException - exception.Copyright © 2018–2021 Alibaba Group. All rights reserved.