Class ZookeeperTestServer

java.lang.Object
com.salesforce.kafka.test.ZookeeperTestServer
All Implemented Interfaces:
AutoCloseable

public class ZookeeperTestServer
extends Object
implements AutoCloseable
Wrapper around TestingServer zookeeper test server instance.
  • Constructor Details

  • Method Details

    • start

      public void start()
      Starts the internal Test zookeeper server instance.
    • restart

      public void restart()
      Restarts the internal Test zookeeper server instance.
    • stop

      public void stop()
      Stops the internal Test zookeeper server instance.
    • close

      public void close()
      Alias for stop().
      Specified by:
      close in interface AutoCloseable
    • getConnectString

      public String getConnectString()
      Returns connection string for zookeeper clients.
      Returns:
      Connection string to connect to the Zookeeper instance.
      Throws:
      IllegalStateException - if start() has not been called yet.