Class ZooKeeperServerController


  • public class ZooKeeperServerController
    extends java.lang.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 Detail

      • ZooKeeperServerController

        public ZooKeeperServerController​(QuorumPeerConfig config)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • run

        public void run()
      • shutdown

        public void shutdown()
      • isReady

        public boolean isReady()
      • processCommand

        public void processCommand​(ControlCommand command)
        Process the command. An exception indicates errors. No exception indicates success.