限定符和类型 | 字段和说明 |
---|---|
String |
addressServerUrl |
static String |
CUSTOM_NAME |
static String |
DEFAULT_NAME |
static String |
FIXED_NAME |
String |
serverPort |
构造器和说明 |
---|
ServerListManager() |
ServerListManager(List<String> fixed) |
ServerListManager(List<String> fixed,
String namespace) |
ServerListManager(Properties 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()
This method is migrated from 2.x code.
|
List<String> |
getServerUrls() |
String |
getTenant() |
void |
refreshCurrentServerAddr() |
void |
shutdown() |
void |
start()
Start.
|
String |
toString() |
void |
updateCurrentServerAddr(String currentServerAddr) |
public ServerListManager()
public ServerListManager(String host, int port)
public ServerListManager(String endpoint) throws NacosException
NacosException
public ServerListManager(String endpoint, String namespace) throws NacosException
NacosException
public ServerListManager(Properties properties) throws NacosException
NacosException
public void start() throws NacosException
NacosException
- nacos exceptionpublic void shutdown() throws NacosException
shutdown
在接口中 Closeable
NacosException
public boolean contain(String ip)
public void refreshCurrentServerAddr()
public String getCurrentServerAddr()
public void updateCurrentServerAddr(String currentServerAddr)
public String getNextServerAddr()
public String getContentPath()
public String getName()
public String getNamespace()
public String getTenant()
Copyright © 2018–2023 Alibaba Group. All rights reserved.