Package io.strimzi.test.container
Class StrimziConnectCluster
java.lang.Object
io.strimzi.test.container.StrimziConnectCluster
A Kafka Connect cluster using the latest image from quay.io/strimzi/kafka with the given version.
Kafka Connect is started in distributed mode. Users must use the exposed REST API to start, stop and manage connectors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class forStrimziConnectCluster. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionReturn the REST API endpoint of one of the available workers.Collection<org.testcontainers.containers.GenericContainer<?>>Get the workers of this Kafka Connect cluster.voidstart()Start the Kafka Connect cluster.voidstop()Stop the Kafka Connect cluster.
-
Constructor Details
-
StrimziConnectCluster
-
-
Method Details
-
getWorkers
Get the workers of this Kafka Connect cluster.- Returns:
- collection of GenericContainer containers
-
start
public void start()Start the Kafka Connect cluster. This starts all the workers and waits for them to all be healthy and ready to be used. -
stop
public void stop()Stop the Kafka Connect cluster. -
getRestEndpoint
Return the REST API endpoint of one of the available workers.- Returns:
- the REST API endpoint
-