KafkaCluster |
KafkaCluster.addBrokers(int count) |
Add a number of new Kafka broker to the cluster.
|
KafkaCluster |
KafkaCluster.deleteDataPriorToStartup(boolean delete) |
Specify whether the data is to be deleted prior to startup().
|
KafkaCluster |
KafkaCluster.deleteDataUponShutdown(boolean delete) |
Specify whether the data is to be deleted upon shutdown().
|
KafkaCluster |
KafkaCluster.shutdown() |
Shutdown the embedded Zookeeper server and the Kafka servers in the cluster.
|
KafkaCluster |
KafkaCluster.startup() |
Start the embedded Zookeeper server and the Kafka servers in the cluster.
|
KafkaCluster |
KafkaCluster.usingDirectory(File dataDir) |
Set the parent directory where the brokers logs and server's logs and snapshots will be kept.
|
KafkaCluster |
KafkaCluster.withKafkaConfiguration(Properties properties) |
Set the configuration properties for each of the brokers.
|
KafkaCluster |
KafkaCluster.withPorts(int zkPort,
int firstKafkaPort) |
Set the port numbers for Zookeeper and the Kafka brokers.
|