类 AbstractServerListManager
java.lang.Object
com.alibaba.nacos.client.address.AbstractServerListManager
- 所有已实现的接口:
Closeable,ServerListFactory
public abstract class AbstractServerListManager
extends Object
implements ServerListFactory, Closeable
Server list Manager.
- 作者:
- totalo
-
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Loggerprotected NacosClientPropertiesprotected ServerListProvider -
构造器概要
构造器构造器说明AbstractServerListManager(NacosClientProperties properties) AbstractServerListManager(NacosClientProperties properties, String namespace) -
方法概要
修饰符和类型方法说明protected abstract Stringget module name.protected abstract NacosRestTemplateget nacos rest template.(专用程序包) NacosClientPropertiesbooleanisFixed()voidshutdown()voidstart()Start server list manager.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.alibaba.nacos.common.remote.client.ServerListFactory
genNextServer, getCurrentServer
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
serverListProvider
-
properties
-
-
构造器详细资料
-
AbstractServerListManager
-
AbstractServerListManager
-
-
方法详细资料
-
getServerList
- 指定者:
getServerList在接口中ServerListFactory
-
shutdown
- 指定者:
shutdown在接口中Closeable- 抛出:
NacosException
-
start
Start server list manager.- 抛出:
NacosException- during start and initialize.
-
getServerName
-
getContextPath
-
getNamespace
-
getAddressSource
-
isFixed
public boolean isFixed() -
getModuleName
get module name.- 返回:
- module name
-
getNacosRestTemplate
get nacos rest template.- 返回:
- nacos rest template
-
getProperties
NacosClientProperties getProperties()
-