Class ZKClient

  • All Implemented Interfaces:
    org.apache.zookeeper.Watcher, org.linkedin.zookeeper.client.IZKClient, org.linkedin.zookeeper.client.IZooKeeper

    public class ZKClient
    extends org.linkedin.zookeeper.client.AbstractZKClient
    implements org.apache.zookeeper.Watcher
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ZKClient.State  
      • Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher

        org.apache.zookeeper.Watcher.Event
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.linkedin.zookeeper.client.IZooKeeperFactory _factory  
      protected Object _lock  
      protected org.linkedin.util.clock.Timespan _reconnectTimeout  
      protected ZKClient.State _state  
      protected org.linkedin.zookeeper.client.IZooKeeper _zk  
      protected org.linkedin.util.clock.Timespan sessionTimeout  
      • Fields inherited from class org.linkedin.zookeeper.client.AbstractZKClient

        log, MODULE
    • Constructor Summary

      Constructors 
      Constructor Description
      ZKClient​(String connectString, org.linkedin.util.clock.Timespan sessionTimeout, org.apache.zookeeper.Watcher watcher)  
      ZKClient​(org.linkedin.zookeeper.client.IZooKeeperFactory factory)  
      ZKClient​(org.linkedin.zookeeper.client.IZooKeeperFactory factory, String chroot)  
    • Field Detail

      • _lock

        protected final Object _lock
      • _factory

        protected org.linkedin.zookeeper.client.IZooKeeperFactory _factory
      • _zk

        protected org.linkedin.zookeeper.client.IZooKeeper _zk
      • _reconnectTimeout

        protected org.linkedin.util.clock.Timespan _reconnectTimeout
      • sessionTimeout

        protected org.linkedin.util.clock.Timespan sessionTimeout
    • Constructor Detail

      • ZKClient

        public ZKClient​(String connectString,
                        org.linkedin.util.clock.Timespan sessionTimeout,
                        org.apache.zookeeper.Watcher watcher)
      • ZKClient

        public ZKClient​(org.linkedin.zookeeper.client.IZooKeeperFactory factory)
      • ZKClient

        public ZKClient​(org.linkedin.zookeeper.client.IZooKeeperFactory factory,
                        String chroot)