类 Curator5ZookeeperClient
- java.lang.Object
-
- org.apache.dubbo.remoting.zookeeper.AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
-
- org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient
-
- 所有已实现的接口:
ZookeeperClient
public class Curator5ZookeeperClient extends AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
-
-
构造器概要
构造器 构造器 说明 Curator5ZookeeperClient(URL url)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancheckExists(String path)voidcreateEphemeral(String path)voidcreatePersistent(String path)org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImplcreateTargetChildListener(String path, ChildListener listener)voiddoClose()StringdoGetContent(String path)List<String>getChildren(String path)org.apache.curator.framework.CuratorFrameworkgetClient()just for unit testbooleanisConnected()voidremoveTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl listener)-
从类继承的方法 org.apache.dubbo.remoting.zookeeper.AbstractZookeeperClient
addChildListener, addDataListener, addDataListener, addStateListener, close, create, create, delete, getContent, getSessionListeners, getUrl, removeChildListener, removeDataListener, removeStateListener
-
-
-
-
构造器详细资料
-
Curator5ZookeeperClient
public Curator5ZookeeperClient(URL url)
-
-
方法详细资料
-
createPersistent
public void createPersistent(String path)
-
createEphemeral
public void createEphemeral(String path)
-
checkExists
public boolean checkExists(String path)
- 指定者:
checkExists在接口中ZookeeperClient- 指定者:
checkExists在类中AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
-
isConnected
public boolean isConnected()
-
doClose
public void doClose()
-
createTargetChildListener
public org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl createTargetChildListener(String path, ChildListener listener)
-
removeTargetChildListener
public void removeTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl listener)
-
getClient
public org.apache.curator.framework.CuratorFramework getClient()
just for unit test- 返回:
-
-