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 Summary
ConstructorsConstructorDescriptionConfluentInfraService(String confluentInstanceName) ConfluentInfraService(ConfluentContainer confluentContainer) -
Method Summary
Modifier and TypeMethodDescriptionbrokers()Gets the addresses of the bootstrap servers in the format host1:port,host2:port,etcprotected Integerprotected ConfluentContainerinitConfluentContainer(org.testcontainers.containers.Network network, String instanceName) voidvoidvoidshutdown()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
-
ConfluentInfraService
public ConfluentInfraService() -
ConfluentInfraService
-
ConfluentInfraService
-
-
Method Details
-
initConfluentContainer
protected ConfluentContainer initConfluentContainer(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:
-
brokers
- Specified by:
brokersin interfaceKafkaInfraService
-
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
- Specified by:
getContainerin interfaceorg.apache.camel.test.infra.common.services.ContainerService<ConfluentContainer>
-