Class 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 Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • DockerKafkaController

        public DockerKafkaController​(KafkaContainer container)
    • Method Detail

      • 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