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 Summary
ConstructorsConstructorDescriptionRedpandaInfraService(String redpandaInstanceName) RedpandaInfraService(org.testcontainers.redpanda.RedpandaContainer redpandaContainer) -
Method Summary
Modifier and TypeMethodDescriptionGets the addresses of the bootstrap servers in the format host1:port,host2:port,etcorg.testcontainers.redpanda.RedpandaContainerprotected Integervoidprotected org.testcontainers.redpanda.RedpandaContainerinitRedpandaContainer(org.testcontainers.containers.Network network, String instanceName) voidvoidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.test.infra.common.services.ContainerService
followLogMethods inherited from interface org.apache.camel.test.infra.common.services.InfrastructureService
close
-
Constructor Details
-
RedpandaInfraService
public RedpandaInfraService() -
RedpandaInfraService
-
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
-
getBootstrapServers
Description copied from interface:KafkaInfraServiceGets the addresses of the bootstrap servers in the format host1:port,host2:port,etc- Specified by:
getBootstrapServersin interfaceKafkaInfraService- Returns:
-
registerProperties
public void registerProperties()- Specified by:
registerPropertiesin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
getContainer
public org.testcontainers.redpanda.RedpandaContainer getContainer()- Specified by:
getContainerin interfaceorg.apache.camel.test.infra.common.services.ContainerService<org.testcontainers.redpanda.RedpandaContainer>
-