Class CuratorZookeeperClient

java.lang.Object
org.apache.dubbo.remoting.zookeeper.AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.CuratorWatcherImpl>
org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient
All Implemented Interfaces:
ZookeeperClient

public class CuratorZookeeperClient extends AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.CuratorWatcherImpl>
  • Constructor Details

    • CuratorZookeeperClient

      public CuratorZookeeperClient(URL url)
  • Method Details

    • createPersistent

      public void createPersistent(String path, boolean faultTolerant)
    • createEphemeral

      public void createEphemeral(String path, boolean faultTolerant)
    • getChildren

      public List<String> getChildren(String path)
    • checkExists

      public boolean checkExists(String path)
      Specified by:
      checkExists in interface ZookeeperClient
      Specified by:
      checkExists in class AbstractZookeeperClient<org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.CuratorWatcherImpl>
    • isConnected

      public boolean isConnected()
    • doGetContent

      public String doGetContent(String path)
    • doGetConfigItem

      public ConfigItem doGetConfigItem(String path)
    • doClose

      public void doClose()
    • createTargetChildListener

      public org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.CuratorWatcherImpl createTargetChildListener(String path, ChildListener listener)
    • addTargetChildListener

      public List<String> addTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.CuratorWatcherImpl listener)
    • removeTargetChildListener

      public void removeTargetChildListener(String path, org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.CuratorWatcherImpl listener)