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 Details

    • Curator5ZookeeperClient

      public Curator5ZookeeperClient(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.curator5.Curator5ZookeeperClient.NodeCacheListenerImpl,org.apache.dubbo.remoting.zookeeper.curator5.Curator5ZookeeperClient.CuratorWatcherImpl>
    • isConnected

      public boolean isConnected()
      Description copied from interface: ZookeeperClient
      Check the Zookeeper client whether connected to server or not.
      Returns:
      true if connected
    • doGetContent

      public String doGetContent(String path)
    • doGetConfigItem

      public ConfigItem doGetConfigItem(String path)
    • doClose

      public void doClose()
    • createTargetChildListener

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

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

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