Package org.apache.bookkeeper.shims.zk
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
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
initialize
void initialize(java.io.File snapDir, java.io.File logDir, int zkPort, int maxCC) throws java.io.IOException
Initialize zookeeper server.- 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
void start() throws java.io.IOException
Start the zookeeper server.- Throws:
java.io.IOException
- when failed to start zookeeper server.
-
stop
void stop()
Stop the zookeeper server.
-
-