Class KafkaClusterTestKit
java.lang.Object
org.apache.kafka.common.test.KafkaClusterTestKit
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Method Summary
Modifier and TypeMethodDescriptionbrokers()voidclose()voidformat()scala.Option<CompletableFuture<Integer>> newClientPropertiesBuilder(Properties properties) nodes()voidvoidstartup()org.apache.kafka.controller.ControllervoidWait for a controller to mark all the brokers as ready (registered and unfenced).
-
Method Details
-
format
-
startup
-
waitForReadyBrokers
Wait for a controller to mark all the brokers as ready (registered and unfenced). And also wait for the metadata cache up-to-date in each broker server. -
newClientPropertiesBuilder
public KafkaClusterTestKit.ClientPropertiesBuilder newClientPropertiesBuilder(Properties properties) -
newClientPropertiesBuilder
-
clientProperties
-
bootstrapServers
-
bootstrapControllers
-
controllers
-
interBrokerPortFuture
-
waitForActiveController
- Throws:
InterruptedException
-
brokers
-
raftManagers
-
nodes
-
fatalFaultHandler
-
nonFatalFaultHandler
-
shutdownAll
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
clusterId
-