Class ZooKeeperServerShimImpl

    • Field Summary

      Modifier and Type Field Description
      (package private) org.apache.zookeeper.server.NIOServerCnxnFactory serverFactory  
      (package private) org.apache.zookeeper.server.ZooKeeperServer zks  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​( snapDir, logDir, int zkPort, int maxCC)
      Initialize zookeeper server.
      void start()
      Start the zookeeper server.
      void stop()
      Stop the zookeeper server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • zks

        org.apache.zookeeper.server.ZooKeeperServer zks
      • serverFactory

        org.apache.zookeeper.server.NIOServerCnxnFactory serverFactory
    • Constructor Detail

      • ZooKeeperServerShimImpl

    • Method Detail

      • initialize

        public void initialize​( snapDir,
                               int zkPort,
                               int maxCC)
        Description copied from interface: ZooKeeperServerShim
        Initialize zookeeper server.
        Specified by:
        initialize in interface ZooKeeperServerShim
        snapDir - Snapshot Dir.
        logDir - Log Dir.
        zkPort - ZooKeeper Port.
        maxCC - Max Concurrency for Client.
        Throws: - when failed to initialize zookeeper server.
      • start

        public void start()
        Description copied from interface: ZooKeeperServerShim
        Start the zookeeper server.
        Specified by:
        start in interface ZooKeeperServerShim
        Throws: - when failed to start zookeeper server.