类 AbstractZookeeperClient<TargetDataListener,TargetChildListener>
- java.lang.Object
-
- org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient<TargetDataListener,TargetChildListener>
-
- 所有已实现的接口:
ZookeeperClient
- 直接已知子类:
CuratorZookeeperClient
public abstract class AbstractZookeeperClient<TargetDataListener,TargetChildListener> extends Object implements ZookeeperClient
-
-
构造器概要
构造器 构造器 说明 AbstractZookeeperClient(URL url)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 List<String>addChildListener(String path, ChildListener listener)voidaddDataListener(String path, DataListener listener)voidaddDataListener(String path, DataListener listener, Executor executor)voidaddStateListener(StateListener listener)abstract booleancheckExists(String path)voidclose()voidcreate(String path, boolean ephemeral)voidcreate(String path, String content, boolean ephemeral)voidcreateOrUpdate(String path, String content, boolean ephemeral, int version)voiddelete(String path)ConfigItemgetConfigItem(String path)StringgetContent(String path)Set<StateListener>getSessionListeners()URLgetUrl()voidremoveChildListener(String path, ChildListener listener)voidremoveDataListener(String path, DataListener listener)voidremoveStateListener(StateListener listener)-
从接口继承的方法 org.apache.dubbo.remoting.zookeeper.ZookeeperClient
getChildren, isConnected
-
-
-
-
构造器详细资料
-
AbstractZookeeperClient
public AbstractZookeeperClient(URL url)
-
-
方法详细资料
-
getUrl
public URL getUrl()
- 指定者:
getUrl在接口中ZookeeperClient
-
delete
public void delete(String path)
- 指定者:
delete在接口中ZookeeperClient
-
create
public void create(String path, boolean ephemeral)
- 指定者:
create在接口中ZookeeperClient
-
addStateListener
public void addStateListener(StateListener listener)
- 指定者:
addStateListener在接口中ZookeeperClient
-
removeStateListener
public void removeStateListener(StateListener listener)
- 指定者:
removeStateListener在接口中ZookeeperClient
-
getSessionListeners
public Set<StateListener> getSessionListeners()
-
addChildListener
public List<String> addChildListener(String path, ChildListener listener)
- 指定者:
addChildListener在接口中ZookeeperClient
-
addDataListener
public void addDataListener(String path, DataListener listener)
- 指定者:
addDataListener在接口中ZookeeperClient- 参数:
path- : directory. All of child of path will be listened.
-
addDataListener
public void addDataListener(String path, DataListener listener, Executor executor)
- 指定者:
addDataListener在接口中ZookeeperClient- 参数:
path- : directory. All of child of path will be listened.executor- another thread
-
removeDataListener
public void removeDataListener(String path, DataListener listener)
- 指定者:
removeDataListener在接口中ZookeeperClient
-
removeChildListener
public void removeChildListener(String path, ChildListener listener)
- 指定者:
removeChildListener在接口中ZookeeperClient
-
close
public void close()
- 指定者:
close在接口中ZookeeperClient
-
create
public void create(String path, String content, boolean ephemeral)
- 指定者:
create在接口中ZookeeperClient
-
createOrUpdate
public void createOrUpdate(String path, String content, boolean ephemeral, int version)
- 指定者:
createOrUpdate在接口中ZookeeperClient
-
getContent
public String getContent(String path)
- 指定者:
getContent在接口中ZookeeperClient
-
getConfigItem
public ConfigItem getConfigItem(String path)
- 指定者:
getConfigItem在接口中ZookeeperClient
-
checkExists
public abstract boolean checkExists(String path)
- 指定者:
checkExists在接口中ZookeeperClient
-
-