public class ZookeeperOverrideObserver extends AbstractZookeeperObserver
| 构造器和说明 |
|---|
ZookeeperOverrideObserver() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConfig(AbstractInterfaceConfig config,
String overridePath,
org.apache.curator.framework.recipes.cache.ChildData data)
接口配置新增子节点Data
|
void |
addConfigListener(AbstractInterfaceConfig config,
ConfigListener listener)
Add config listener.
|
void |
removeConfig(AbstractInterfaceConfig config,
String overridePath,
org.apache.curator.framework.recipes.cache.ChildData data,
AbstractInterfaceConfig registerConfig)
接口配置删除子节点Data
|
void |
removeConfigListener(AbstractInterfaceConfig config)
Remove config listener.
|
void |
updateConfig(AbstractInterfaceConfig config,
String overridePath,
org.apache.curator.framework.recipes.cache.ChildData data)
接口配置修改子节点Data
|
void |
updateConfigAll(AbstractInterfaceConfig config,
String overridePath,
List<org.apache.curator.framework.recipes.cache.ChildData> currentData)
接口配置修改子节点Data列表
|
initOrAddListpublic void addConfigListener(AbstractInterfaceConfig config, ConfigListener listener)
config - the configlistener - the listenerpublic void removeConfigListener(AbstractInterfaceConfig config)
config - the configpublic void updateConfig(AbstractInterfaceConfig config, String overridePath, org.apache.curator.framework.recipes.cache.ChildData data) throws Exception
config - 接口配置overridePath - 覆盖Pathdata - 子节点DataException - 转换配置异常public void updateConfigAll(AbstractInterfaceConfig config, String overridePath, List<org.apache.curator.framework.recipes.cache.ChildData> currentData) throws UnsupportedEncodingException
config - 接口配置overridePath - 覆盖PathcurrentData - 子节点Data列表UnsupportedEncodingException - 转换配置异常public void removeConfig(AbstractInterfaceConfig config, String overridePath, org.apache.curator.framework.recipes.cache.ChildData data, AbstractInterfaceConfig registerConfig) throws Exception
config - 接口配置overridePath - 覆盖Pathdata - 子节点DataregisterConfig - 注册配置Exception - 转换配置异常public void addConfig(AbstractInterfaceConfig config, String overridePath, org.apache.curator.framework.recipes.cache.ChildData data) throws Exception
config - 接口配置overridePath - 覆盖Pathdata - 子节点DataException - 转换配置异常Copyright © 2008–2018 The Ant Financial. All rights reserved.