Class ContainerLocalKafkaInfraService
java.lang.Object
org.apache.camel.test.infra.kafka.services.ContainerLocalKafkaInfraService
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.test.infra.common.services.ContainerService<org.testcontainers.kafka.KafkaContainer>
,org.apache.camel.test.infra.common.services.InfrastructureService
,KafkaInfraService
@InfraService(service=KafkaInfraService.class,
description="Apache Kafka, Distributed event streaming platform",
serviceAlias="kafka")
public class ContainerLocalKafkaInfraService
extends Object
implements KafkaInfraService, org.apache.camel.test.infra.common.services.ContainerService<org.testcontainers.kafka.KafkaContainer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.testcontainers.kafka.KafkaContainer
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionContainerLocalKafkaInfraService
(org.testcontainers.kafka.KafkaContainer kafka) -
Method Summary
Modifier and TypeMethodDescriptionGets the addresses of the bootstrap servers in the format host1:port,host2:port,etcorg.testcontainers.kafka.KafkaContainer
protected org.testcontainers.kafka.KafkaContainer
void
void
void
shutdown()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.test.infra.common.services.ContainerService
followLog
Methods inherited from interface org.apache.camel.test.infra.common.services.InfrastructureService
close
-
Field Details
-
KAFKA3_IMAGE_NAME
-
kafka
protected org.testcontainers.kafka.KafkaContainer kafka
-
-
Constructor Details
-
ContainerLocalKafkaInfraService
public ContainerLocalKafkaInfraService() -
ContainerLocalKafkaInfraService
public ContainerLocalKafkaInfraService(org.testcontainers.kafka.KafkaContainer kafka)
-
-
Method Details
-
initContainer
protected org.testcontainers.kafka.KafkaContainer initContainer() -
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 interfaceKafkaInfraService
- Returns:
-
registerProperties
public void registerProperties()- Specified by:
registerProperties
in interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
initialize
public void initialize()- Specified by:
initialize
in interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
getContainer
public org.testcontainers.kafka.KafkaContainer getContainer()- Specified by:
getContainer
in interfaceorg.apache.camel.test.infra.common.services.ContainerService<org.testcontainers.kafka.KafkaContainer>
-
kafka3Container
-