Class KafkaClusterFactory
java.lang.Object
io.kroxylicious.testing.kafka.common.KafkaClusterFactory
The type Kafka cluster factory.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.static final Stringenvironment variable specifying the kafka version.static final Stringenvironment variable specifying execution mode, IN_VM or CONTAINER.static final Stringenvironment variable specifying kraft mode, true or false.static final StringDeprecated, for removal: This API element is subject to removal in a future version. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic KafkaClustercreate(KafkaClusterConfig clusterConfig) Create kafka cluster. 
- 
Field Details
- 
TEST_CLUSTER_EXECUTION_MODE
environment variable specifying execution mode, IN_VM or CONTAINER.- See Also:
 
 - 
KAFKA_VERSION
environment variable specifying the kafka version.- See Also:
 
 - 
KAFKA_IMAGE_REPO
Deprecated, for removal: This API element is subject to removal in a future version.use the field fromTestcontainersKafkaClusterenvironment variable specifying the kafka image repository.- See Also:
 
 - 
ZOOKEEPER_IMAGE_REPO
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
 
 - 
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
Create kafka cluster.- Parameters:
 clusterConfig- the cluster config- Returns:
 - the kafka cluster
 
 
 - 
 
TestcontainersKafkaCluster