Class Curator5ZookeeperClient
java.lang.Object
org.apache.dubbo.remoting.zookeeper.curator5.AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient
- All Implemented Interfaces:
ZookeeperClient
public class Curator5ZookeeperClient
extends AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl listener) booleancheckExists(String path) voidcreateEphemeral(String path, boolean faultTolerant) voidcreatePersistent(String path, boolean faultTolerant) org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImplcreateTargetChildListener(String path, ChildListener listener) voiddoClose()doGetConfigItem(String path) doGetContent(String path) getChildren(String path) booleanCheck the Zookeeper client whether connected to server or not.voidremoveTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl listener) Methods inherited from class org.apache.dubbo.remoting.zookeeper.curator5.AbstractZookeeperClient
addChildListener, addDataListener, addDataListener, addStateListener, close, create, createOrUpdate, createOrUpdate, delete, getConfigItem, getContent, getSessionListeners, getUrl, removeChildListener, removeDataListener, removeStateListener
-
Constructor Details
-
Curator5ZookeeperClient
-
-
Method Details
-
createPersistent
-
createEphemeral
-
getChildren
-
checkExists
- Specified by:
checkExistsin interfaceZookeeperClient- Specified by:
checkExistsin classAbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
-
isConnected
public boolean isConnected()Description copied from interface:ZookeeperClientCheck the Zookeeper client whether connected to server or not.- Returns:
- true if connected
-
doGetContent
-
doGetConfigItem
-
doClose
public void doClose() -
createTargetChildListener
public org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl createTargetChildListener(String path, ChildListener listener) -
addTargetChildListener
-
removeTargetChildListener
public void removeTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl listener)
-