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
Modifier and TypeMethodDescriptionvoidinitialize(File snapDir, File logDir, int zkPort, int maxCC) Initialize zookeeper server.voidstart()Start the zookeeper server.voidstop()Stop the zookeeper server.
-
Method Details
-
initialize
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
Start the zookeeper server.- Throws:
IOException- when failed to start zookeeper server.
-
stop
void stop()Stop the zookeeper server.
-