ZooKeeperServerController (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.controller

## 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 Summary

    Constructors
    Constructor and Description
    `ZooKeeperServerController(QuorumPeerConfig config)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected ServerCnxnFactory` | `getCnxnFactory()`
    `boolean` | `isReady()`
    `void` | `processCommand(ControlCommand command)` Process the command.
    `void` | `run()`
    `void` | `shutdown()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ZooKeeperServerController

          public ZooKeeperServerController(QuorumPeerConfig config)
                                    throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### run

          public void run()

    - #### getCnxnFactory

          protected ServerCnxnFactory getCnxnFactory()

    - #### 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.

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.