Package org.apache.bookkeeper.shims.zk
Class ZooKeeperServerShimImpl
- java.lang.Object
- 
- org.apache.bookkeeper.shims.zk.ZooKeeperServerShimImpl
 
- 
- All Implemented Interfaces:
- ZooKeeperServerShim
 
 class ZooKeeperServerShimImpl extends java.lang.Object implements ZooKeeperServerShim 
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) org.apache.zookeeper.server.NIOServerCnxnFactoryserverFactory(package private) org.apache.zookeeper.server.ZooKeeperServerzks
 - 
Constructor SummaryConstructors Constructor Description ZooKeeperServerShimImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete 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- 
initializepublic void initialize(java.io.File snapDir, java.io.File logDir, int zkPort, int maxCC) throws java.io.IOExceptionDescription copied from interface:ZooKeeperServerShimInitialize zookeeper server.- Specified by:
- initializein interface- ZooKeeperServerShim
- 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.
 
 - 
startpublic void start() throws java.io.IOExceptionDescription copied from interface:ZooKeeperServerShimStart the zookeeper server.- Specified by:
- startin interface- ZooKeeperServerShim
- Throws:
- java.io.IOException- when failed to start zookeeper server.
 
 - 
stoppublic void stop() Description copied from interface:ZooKeeperServerShimStop the zookeeper server.- Specified by:
- stopin interface- ZooKeeperServerShim
 
 
- 
 
-