Class KafkaClusterFactory

java.lang.Object
io.kroxylicious.testing.kafka.common.KafkaClusterFactory

public class KafkaClusterFactory extends Object
The type Kafka cluster factory.
  • Field Details

    • TEST_CLUSTER_EXECUTION_MODE

      public static final String TEST_CLUSTER_EXECUTION_MODE
      environment variable specifying execution mode, IN_VM or CONTAINER.
      See Also:
    • KAFKA_VERSION

      public static final String KAFKA_VERSION
      environment variable specifying the kafka version.
      See Also:
    • KAFKA_IMAGE_REPO

      @Deprecated(forRemoval=true) public static final String KAFKA_IMAGE_REPO
      Deprecated, for removal: This API element is subject to removal in a future version.
      use the field from TestcontainersKafkaCluster
      environment variable specifying the kafka image repository.
      See Also:
    • ZOOKEEPER_IMAGE_REPO

      @Deprecated(forRemoval=true) public static final String ZOOKEEPER_IMAGE_REPO
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • TEST_CLUSTER_KRAFT_MODE

      public static final String TEST_CLUSTER_KRAFT_MODE
      environment variable specifying kraft mode, true or false.
      See Also:
  • Constructor Details

    • KafkaClusterFactory

      public KafkaClusterFactory()
      Instantiates a new Kafka cluster factory.
  • Method Details

    • create

      public static KafkaCluster create(KafkaClusterConfig clusterConfig)
      Create kafka cluster.
      Parameters:
      clusterConfig - the cluster config
      Returns:
      the kafka cluster