| 限定符和类型 | 字段和说明 |
|---|---|
String |
addressServerUrl |
static String |
CUSTOM_NAME |
static String |
DEFAULT_NAME |
static String |
FIXED_NAME |
| 构造器和说明 |
|---|
ServerListManager() |
ServerListManager(List<String> fixed) |
ServerListManager(List<String> fixed,
String namespace) |
ServerListManager(NacosClientProperties properties) |
ServerListManager(String endpoint) |
ServerListManager(String host,
int port) |
ServerListManager(String endpoint,
String namespace) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contain(String ip) |
String |
getContentPath() |
String |
getCurrentServerAddr() |
Iterator<String> |
getIterator() |
String |
getName() |
String |
getNamespace() |
String |
getNextServerAddr() |
List<String> |
getServerUrls() |
String |
getTenant() |
void |
refreshCurrentServerAddr() |
void |
shutdown() |
void |
start()
Start.
|
String |
toString() |
void |
updateCurrentServerAddr(String currentServerAddr) |
public String addressServerUrl
public ServerListManager()
public ServerListManager(String host, int port)
public ServerListManager(String endpoint) throws NacosException
NacosExceptionpublic ServerListManager(String endpoint, String namespace) throws NacosException
NacosExceptionpublic ServerListManager(NacosClientProperties properties) throws NacosException
NacosExceptionpublic void start()
throws NacosException
NacosException - nacos exceptionpublic void shutdown()
throws NacosException
shutdown 在接口中 CloseableNacosExceptionpublic boolean contain(String ip)
public void refreshCurrentServerAddr()
public String getNextServerAddr()
public String getCurrentServerAddr()
public void updateCurrentServerAddr(String currentServerAddr)
public String getContentPath()
public String getName()
public String getNamespace()
public String getTenant()
Copyright © 2018–2024 Alibaba Group. All rights reserved.