Interface KafkaController
-
- All Known Implementing Classes:
DockerKafkaController,OcpKafkaController
public interface KafkaControllerControl over Kafka cluster- Author:
- Jakub Cechacek
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetBootstrapAddress()The Bootstrap address returned by this method may not be reachable form arbitrary network.default PropertiesgetDefaultConsumerProperties()StringgetPublicBootstrapAddress()The Bootstrap address returned by this method must be reachable form arbitrary network.booleanundeploy()Undeploy this Kafka clustervoidwaitForCluster()Waits for cluster to be available
-
-
-
Method Detail
-
getPublicBootstrapAddress
String getPublicBootstrapAddress()
The Bootstrap address returned by this method must be reachable form arbitrary network.- Returns:
- Publicly reachable Kafka Bootstrap Server address
-
getBootstrapAddress
String getBootstrapAddress()
The Bootstrap address returned by this method may not be reachable form arbitrary network.- Returns:
- Kafka Bootstrap Server address
-
undeploy
boolean undeploy()
Undeploy this Kafka cluster- Returns:
- true on operation success
-
waitForCluster
void waitForCluster() throws InterruptedExceptionWaits for cluster to be available- Throws:
InterruptedException
-
getDefaultConsumerProperties
default Properties getDefaultConsumerProperties()
- Returns:
- default kafka consumer configuration
-
-