Package org.apache.bookkeeper.shims.zk
Interface ZooKeeperServerShim
-
- All Known Implementing Classes:
ZooKeeperServerShimImpl
public interface ZooKeeperServerShimIn 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 voidinitialize(java.io.File snapDir, java.io.File logDir, int zkPort, int maxCC)Initialize zookeeper server.voidstart()Start the zookeeper server.voidstop()Stop the zookeeper server.
-
-
-
Method Detail
-
initialize
void initialize(java.io.File snapDir, java.io.File logDir, int zkPort, int maxCC) throws java.io.IOExceptionInitialize 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.IOExceptionStart the zookeeper server.- Throws:
java.io.IOException- when failed to start zookeeper server.
-
stop
void stop()
Stop the zookeeper server.
-
-