Class KafkaClusterTestKit
java.lang.Object
org.apache.kafka.common.test.KafkaClusterTestKit
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.clients.admin.Adminadmin()org.apache.kafka.clients.admin.Adminorg.apache.kafka.clients.admin.Adminbrokers()voidclose()voidformat()scala.Option<CompletableFuture<Integer>> 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. -
admin
public org.apache.kafka.clients.admin.Admin admin() -
admin
-
admin
-
bootstrapServers
-
bootstrapControllers
-
controllers
-
interBrokerPortFuture
-
waitForActiveController
- Throws:
InterruptedException
-
brokers
-
raftManagers
-
nodes
-
fatalFaultHandler
-
nonFatalFaultHandler
-
shutdownAll
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
clusterId
-