Interface ZooKeeperServerShim

All Known Implementing Classes:
ZooKeeperServerShimImpl

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

    Modifier and Type
    Method
    Description
    void
    initialize(File snapDir, File logDir, int zkPort, int maxCC)
    Initialize zookeeper server.
    void
    Start the zookeeper server.
    void
    Stop the zookeeper server.
  • Method Details

    • initialize

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

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

      void stop()
      Stop the zookeeper server.