Class StrimziConnectCluster

java.lang.Object
io.strimzi.test.container.StrimziConnectCluster

public class StrimziConnectCluster extends Object
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.
  • Constructor Details

  • Method Details

    • getWorkers

      public Collection<org.testcontainers.containers.GenericContainer<?>> 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

      public String getRestEndpoint()
      Return the REST API endpoint of one of the available workers.
      Returns:
      the REST API endpoint