Class RedpandaInfraService

java.lang.Object
org.apache.camel.test.infra.kafka.services.RedpandaInfraService
All Implemented Interfaces:
AutoCloseable, org.apache.camel.test.infra.common.services.ContainerService<org.testcontainers.redpanda.RedpandaContainer>, org.apache.camel.test.infra.common.services.InfrastructureService, KafkaInfraService

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

    • RedpandaInfraService

      public RedpandaInfraService()
    • RedpandaInfraService

      public RedpandaInfraService(String redpandaInstanceName)
    • RedpandaInfraService

      public RedpandaInfraService(org.testcontainers.redpanda.RedpandaContainer redpandaContainer)
  • Method Details

    • initRedpandaContainer

      protected org.testcontainers.redpanda.RedpandaContainer initRedpandaContainer(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 org.testcontainers.redpanda.RedpandaContainer getContainer()
      Specified by:
      getContainer in interface org.apache.camel.test.infra.common.services.ContainerService<org.testcontainers.redpanda.RedpandaContainer>