Class DockerKafkaController

java.lang.Object
io.debezium.testing.system.tools.kafka.DockerKafkaController
All Implemented Interfaces:
KafkaController

public class DockerKafkaController extends Object implements KafkaController
This class provides control over Kafka instance deployed as DockerContainer
Author:
Jakub Cechacek
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • container

      private final KafkaContainer container
  • Constructor Details

    • DockerKafkaController

      public DockerKafkaController(KafkaContainer container)
  • Method Details

    • getContainer

      public KafkaContainer getContainer()
    • getPublicBootstrapAddress

      public String getPublicBootstrapAddress()
      Description copied from interface: KafkaController
      The Bootstrap address returned by this method must be reachable form arbitrary network.
      Specified by:
      getPublicBootstrapAddress in interface KafkaController
      Returns:
      Publicly reachable Kafka Bootstrap Server address
    • getBootstrapAddress

      public String getBootstrapAddress()
      Description copied from interface: KafkaController
      The Bootstrap address returned by this method may not be reachable form arbitrary network.
      Specified by:
      getBootstrapAddress in interface KafkaController
      Returns:
      Kafka Bootstrap Server address
    • undeploy

      public boolean undeploy()
      Description copied from interface: KafkaController
      Undeploy this Kafka cluster
      Specified by:
      undeploy in interface KafkaController
      Returns:
      true on operation success
    • waitForCluster

      public void waitForCluster()
      Description copied from interface: KafkaController
      Waits for cluster to be available
      Specified by:
      waitForCluster in interface KafkaController