Class ConfluentInfraService

java.lang.Object
org.apache.camel.test.infra.kafka.services.ConfluentInfraService
All Implemented Interfaces:
AutoCloseable, org.apache.camel.test.infra.common.services.ContainerService<ConfluentContainer>, org.apache.camel.test.infra.common.services.InfrastructureService, KafkaInfraService

@InfraService(service=KafkaInfraService.class, description="Apache Kafka, Distributed event streaming platform", serviceAlias="kafka", serviceImplementationAlias="confluent") public class ConfluentInfraService extends Object implements KafkaInfraService, org.apache.camel.test.infra.common.services.ContainerService<ConfluentContainer>
  • Constructor Details

    • ConfluentInfraService

      public ConfluentInfraService()
    • ConfluentInfraService

      public ConfluentInfraService(String confluentInstanceName)
    • ConfluentInfraService

      public ConfluentInfraService(ConfluentContainer confluentContainer)
  • Method Details

    • initConfluentContainer

      protected ConfluentContainer initConfluentContainer(org.testcontainers.containers.Network network, String instanceName)
    • getKafkaPort

      protected Integer getKafkaPort()
    • getBootstrapServers

      public String getBootstrapServers()
      Description copied from interface: KafkaInfraService
      Gets the addresses of the bootstrap servers in the format host1:port,host2:port,etc
      Specified by:
      getBootstrapServers in interface KafkaInfraService
      Returns:
    • registerProperties

      public void registerProperties()
      Specified by:
      registerProperties in interface org.apache.camel.test.infra.common.services.InfrastructureService
    • initialize

      public void initialize()
      Specified by:
      initialize in interface org.apache.camel.test.infra.common.services.InfrastructureService
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.apache.camel.test.infra.common.services.InfrastructureService
    • getContainer

      public ConfluentContainer getContainer()
      Specified by:
      getContainer in interface org.apache.camel.test.infra.common.services.ContainerService<ConfluentContainer>