Class ZooKeeperServerShimImpl

    • Field Summary

      Fields 
      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​(java.io.File snapDir, java.io.File 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

        ZooKeeperServerShimImpl()
    • Method Detail

      • initialize

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

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