Class ZooKeeperServerController
- java.lang.Object
- 
- org.apache.zookeeper.server.controller.ZooKeeperServerController
 
- 
 public class ZooKeeperServerController extends Object Class which accepts commands to modify ZooKeeperServer state or Connection state at runtime for the purpose of single machine integration testing. Not meant to be used in production. It is recommended to use this in conjunction with the CommandListener HttpServer and CommandClient.
- 
- 
Constructor SummaryConstructors Constructor Description ZooKeeperServerController(QuorumPeerConfig config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServerCnxnFactorygetCnxnFactory()booleanisReady()voidprocessCommand(ControlCommand command)Process the command.voidrun()voidshutdown()
 
- 
- 
- 
Constructor Detail- 
ZooKeeperServerControllerpublic ZooKeeperServerController(QuorumPeerConfig config) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
runpublic void run() 
 - 
getCnxnFactoryprotected ServerCnxnFactory getCnxnFactory() 
 - 
shutdownpublic void shutdown() 
 - 
isReadypublic boolean isReady() 
 - 
processCommandpublic void processCommand(ControlCommand command) Process the command. An exception indicates errors. No exception indicates success.
 
- 
 
-