| Package | Description |
|---|---|
| com.alibaba.nacos.api.naming | |
| com.alibaba.nacos.api.naming.listener | |
| com.alibaba.nacos.api.naming.pojo |
| Modifier and Type | Method and Description |
|---|---|
Instance |
NamingService.selectOneHealthyInstance(String serviceName)
Select one healthy instance of service using predefined load balance strategy
|
Instance |
NamingService.selectOneHealthyInstance(String serviceName,
List<String> clusters)
Select one healthy instance of service using predefined load balance strategy
|
| Modifier and Type | Method and Description |
|---|---|
List<Instance> |
NamingService.getAllInstances(String serviceName)
Get all instances of a service
|
List<Instance> |
NamingService.getAllInstances(String serviceName,
List<String> clusters)
Get all instances within specified clusters of a service
|
List<Instance> |
NamingService.selectInstances(String serviceName,
boolean healthy)
Get qualified instances of service
|
List<Instance> |
NamingService.selectInstances(String serviceName,
List<String> clusters,
boolean healthy)
Get qualified instances within specified clusters of service
|
| Modifier and Type | Method and Description |
|---|---|
void |
NamingService.registerInstance(String serviceName,
Instance instance)
Register a instance to service with specified instance properties
|
| Modifier and Type | Method and Description |
|---|---|
List<Instance> |
NamingEvent.getInstances() |
| Modifier and Type | Method and Description |
|---|---|
void |
NamingEvent.setInstances(List<Instance> instances) |
| Constructor and Description |
|---|
NamingEvent(String serviceName,
List<Instance> instances) |
| Modifier and Type | Method and Description |
|---|---|
List<Instance> |
ServiceInfo.getHosts() |
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceInfo.setHosts(List<Instance> hosts) |
Copyright © 2018 Alibaba Group. All rights reserved.