类 AbstractZookeeperClient<TargetDataListener,TargetChildListener>
- java.lang.Object
-
- org.apache.dubbo.remoting.zookeeper.AbstractZookeeperClient<TargetDataListener,TargetChildListener>
-
- 所有已实现的接口:
ZookeeperClient
public abstract class AbstractZookeeperClient<TargetDataListener,TargetChildListener> extends Object implements ZookeeperClient
-
-
构造器概要
构造器 构造器 说明 AbstractZookeeperClient(URL url)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 List<String>
addChildListener(String path, ChildListener listener)
void
addDataListener(String path, DataListener listener)
void
addDataListener(String path, DataListener listener, Executor executor)
void
addStateListener(StateListener listener)
abstract boolean
checkExists(String path)
void
close()
void
create(String path, boolean ephemeral)
void
create(String path, String content, boolean ephemeral)
void
delete(String path)
String
getContent(String path)
Set<StateListener>
getSessionListeners()
URL
getUrl()
void
removeChildListener(String path, ChildListener listener)
void
removeDataListener(String path, DataListener listener)
void
removeStateListener(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
-
getContent
public String getContent(String path)
- 指定者:
getContent
在接口中ZookeeperClient
-
checkExists
public abstract boolean checkExists(String path)
- 指定者:
checkExists
在接口中ZookeeperClient
-
-