类 ClientWorker.ConfigRpcTransportClient
java.lang.Object
com.alibaba.nacos.client.config.impl.ConfigTransportClient
com.alibaba.nacos.client.config.impl.ClientWorker.ConfigRpcTransportClient
- 封闭类:
- ClientWorker
-
字段概要
从类继承的字段 com.alibaba.nacos.client.config.impl.ConfigTransportClient
securityProxy -
构造器概要
构造器构造器说明ConfigRpcTransportClient(com.alibaba.nacos.client.env.NacosClientProperties properties, ConfigServerListManager serverListManager) -
方法概要
修饰符和类型方法说明voidcheckLocalConfig(CacheData cacheData) Checks and handles local configuration for a given CacheData object.voidlisten change .getName()get client name.booleanisAbilitySupportedByServer(com.alibaba.nacos.api.ability.constant.AbilityKey abilityKey) Determine whether nacos-server supports the capability.booleancheck server is health.voidnotify listen config.booleanpublishConfig(String dataId, String group, String tenant, String appName, String tag, String betaIps, String content, String encryptedDataKey, String casMd5, String type) publish config.queryConfig(String dataId, String group, String tenant, long readTimeouts, boolean notify) query config.voidremoveCache(String dataId, String group) remove cache implements.booleanremoveConfig(String dataId, String group, String tenant, String tag) remove config.voidshutdown()voidstart client inner.从类继承的方法 com.alibaba.nacos.client.config.impl.ConfigTransportClient
buildResource, getCommonHeader, getEncode, getExecutor, getSecurityHeaders, getTenant, reLogin, setExecutor, start
-
构造器详细资料
-
ConfigRpcTransportClient
public ConfigRpcTransportClient(com.alibaba.nacos.client.env.NacosClientProperties properties, ConfigServerListManager serverListManager)
-
-
方法详细资料
-
shutdown
public void shutdown() throws com.alibaba.nacos.api.exception.NacosException- 覆盖:
shutdown在类中ConfigTransportClient- 抛出:
com.alibaba.nacos.api.exception.NacosException
-
startInternal
public void startInternal()从类复制的说明:ConfigTransportClientstart client inner.- 指定者:
startInternal在类中ConfigTransportClient
-
getName
从类复制的说明:ConfigTransportClientget client name.- 指定者:
getName在类中ConfigTransportClient- 返回:
- name.
-
notifyListenConfig
public void notifyListenConfig()从类复制的说明:ConfigTransportClientnotify listen config.- 指定者:
notifyListenConfig在类中ConfigTransportClient
-
executeConfigListen
public void executeConfigListen() throws com.alibaba.nacos.api.exception.NacosException从类复制的说明:ConfigTransportClientlisten change .- 指定者:
executeConfigListen在类中ConfigTransportClient- 抛出:
com.alibaba.nacos.api.exception.NacosException- nacos exception throws, should retry.
-
checkLocalConfig
Checks and handles local configuration for a given CacheData object. This method evaluates the use of failover files for local configuration storage and updates the CacheData accordingly.- 参数:
cacheData- The CacheData object to be processed.
-
removeCache
从类复制的说明:ConfigTransportClientremove cache implements.- 指定者:
removeCache在类中ConfigTransportClient- 参数:
dataId- dataId.group- group
-
queryConfig
public ConfigResponse queryConfig(String dataId, String group, String tenant, long readTimeouts, boolean notify) throws com.alibaba.nacos.api.exception.NacosException 从类复制的说明:ConfigTransportClientquery config.- 指定者:
queryConfig在类中ConfigTransportClient- 参数:
dataId- dataId.group- group.tenant- tenat.readTimeouts- readTimeous.notify- query for notify sync.- 返回:
- content.
- 抛出:
com.alibaba.nacos.api.exception.NacosException- throw where query fail .
-
publishConfig
public boolean publishConfig(String dataId, String group, String tenant, String appName, String tag, String betaIps, String content, String encryptedDataKey, String casMd5, String type) throws com.alibaba.nacos.api.exception.NacosException 从类复制的说明:ConfigTransportClientpublish config.- 指定者:
publishConfig在类中ConfigTransportClient- 参数:
dataId- dataId.group- group.tenant- tenant.appName- appName.tag- tag.betaIps- betaIps.content- content.encryptedDataKey- encryptedDataKeycasMd5- casMd5.type- type.- 返回:
- success or not.
- 抛出:
com.alibaba.nacos.api.exception.NacosException- throw where publish fail.
-
removeConfig
public boolean removeConfig(String dataId, String group, String tenant, String tag) throws com.alibaba.nacos.api.exception.NacosException 从类复制的说明:ConfigTransportClientremove config.- 指定者:
removeConfig在类中ConfigTransportClient- 参数:
dataId- dataid.group- group.tenant- tenat.tag- tag.- 返回:
- success or not.
- 抛出:
com.alibaba.nacos.api.exception.NacosException- throw where publish fail.
-
isHealthServer
public boolean isHealthServer()check server is health.- 返回:
-
isAbilitySupportedByServer
public boolean isAbilitySupportedByServer(com.alibaba.nacos.api.ability.constant.AbilityKey abilityKey) Determine whether nacos-server supports the capability.- 参数:
abilityKey- ability key- 返回:
- true if supported, otherwise false
-