Class ServerListManager
- java.lang.Object
-
- com.alibaba.nacos.client.config.impl.ServerListManager
-
public class ServerListManager extends Object
Serverlist Manager- Author:
- Nacos
-
-
Field Summary
Fields Modifier and Type Field Description StringaddressServerUrlstatic StringCUSTOM_NAMEstatic StringDEFAULT_NAMEstatic StringFIXED_NAMEStringserverPort
-
Constructor Summary
Constructors Constructor Description ServerListManager()ServerListManager(String endpoint)ServerListManager(String host, int port)ServerListManager(String endpoint, String namespace)ServerListManager(List<String> fixed)ServerListManager(List<String> fixed, String namespace)ServerListManager(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontain(String ip)StringgetContentPath()StringgetCurrentServerAddr()StringgetName()StringgetNamespace()StringgetTenant()voidrefreshCurrentServerAddr()voidstart()StringtoString()
-
-
-
Field Detail
-
DEFAULT_NAME
public static final String DEFAULT_NAME
- See Also:
- Constant Field Values
-
CUSTOM_NAME
public static final String CUSTOM_NAME
- See Also:
- Constant Field Values
-
FIXED_NAME
public static final String FIXED_NAME
- See Also:
- Constant Field Values
-
serverPort
public String serverPort
-
addressServerUrl
public String addressServerUrl
-
-
Constructor Detail
-
ServerListManager
public ServerListManager()
-
ServerListManager
public ServerListManager(String host, int port)
-
ServerListManager
public ServerListManager(String endpoint) throws com.alibaba.nacos.api.exception.NacosException
- Throws:
com.alibaba.nacos.api.exception.NacosException
-
ServerListManager
public ServerListManager(String endpoint, String namespace) throws com.alibaba.nacos.api.exception.NacosException
- Throws:
com.alibaba.nacos.api.exception.NacosException
-
ServerListManager
public ServerListManager(Properties properties) throws com.alibaba.nacos.api.exception.NacosException
- Throws:
com.alibaba.nacos.api.exception.NacosException
-
-
Method Detail
-
start
public void start() throws com.alibaba.nacos.api.exception.NacosException- Throws:
com.alibaba.nacos.api.exception.NacosException
-
contain
public boolean contain(String ip)
-
refreshCurrentServerAddr
public void refreshCurrentServerAddr()
-
getCurrentServerAddr
public String getCurrentServerAddr()
-
getContentPath
public String getContentPath()
-
getName
public String getName()
-
getNamespace
public String getNamespace()
-
getTenant
public String getTenant()
-
-