public class ServerListManager extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
addressServerUrl |
static String |
CUSTOM_NAME |
static String |
DEFAULT_NAME |
static String |
FIXED_NAME |
String |
serverPort |
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contain(String ip) |
String |
getContentPath() |
String |
getCurrentServerAddr() |
Iterator<String> |
getIterator() |
String |
getName() |
String |
getNamespace() |
List<String> |
getServerUrls() |
String |
getTenant() |
void |
refreshCurrentServerAddr() |
void |
start() |
String |
toString() |
void |
updateCurrentServerAddr(String currentServerAddr) |
public static final String DEFAULT_NAME
public static final String CUSTOM_NAME
public static final String FIXED_NAME
public String serverPort
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(Properties properties) throws NacosException
NacosExceptionpublic void start()
throws NacosException
NacosExceptionpublic boolean contain(String ip)
public void refreshCurrentServerAddr()
public String getCurrentServerAddr()
public void updateCurrentServerAddr(String currentServerAddr)
public String getContentPath()
public String getName()
public String getNamespace()
public String getTenant()
Copyright © 2018–2020 Alibaba Group. All rights reserved.