Interface ZooKeeperServerShim

  • All Known Implementing Classes:

    public interface ZooKeeperServerShim
    In order to be compatible with multiple versions of ZooKeeper. All parts of the ZooKeeper Server that are not cross-version compatible are encapsulated in an implementation of this class.
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • initialize

        void initialize​( snapDir,
                        int zkPort,
                        int maxCC)
        Initialize zookeeper server.
        snapDir - Snapshot Dir.
        logDir - Log Dir.
        zkPort - ZooKeeper Port.
        maxCC - Max Concurrency for Client.
        Throws: - when failed to initialize zookeeper server.
      • start

        void start()
        Start the zookeeper server.
        Throws: - when failed to start zookeeper server.
      • stop

        void stop()
        Stop the zookeeper server.