public abstract class AbstractServerListManager extends Object implements ServerListFactory, Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
protected NacosClientProperties |
properties |
protected ServerListProvider |
serverListProvider |
| 构造器和说明 |
|---|
AbstractServerListManager(NacosClientProperties properties) |
AbstractServerListManager(NacosClientProperties properties,
String namespace) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAddressSource() |
String |
getContextPath() |
protected abstract String |
getModuleName()
get module name.
|
protected abstract NacosRestTemplate |
getNacosRestTemplate()
get nacos rest template.
|
String |
getNamespace() |
List<String> |
getServerList() |
String |
getServerName() |
boolean |
isFixed() |
void |
shutdown() |
void |
start()
Start server list manager.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenNextServer, getCurrentServerprotected ServerListProvider serverListProvider
protected NacosClientProperties properties
public AbstractServerListManager(NacosClientProperties properties)
public AbstractServerListManager(NacosClientProperties properties, String namespace)
public List<String> getServerList()
getServerList 在接口中 ServerListFactorypublic void shutdown()
throws NacosException
shutdown 在接口中 CloseableNacosExceptionpublic void start()
throws NacosException
NacosException - during start and initialize.public String getServerName()
public String getContextPath()
public String getNamespace()
public String getAddressSource()
public boolean isFixed()
protected abstract String getModuleName()
protected abstract NacosRestTemplate getNacosRestTemplate()
Copyright © 2018–2025 Alibaba Group. All rights reserved.