public interface KafkaTestEnvironment
| Modifier and Type | Interface and Description |
|---|---|
static class |
KafkaTestEnvironment.Config |
static interface |
KafkaTestEnvironment.KafkaOffsetHandler
Simple interface to commit and retrieve offsets.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
KAFKA_HOST |
| Modifier and Type | Method and Description |
|---|---|
static KafkaTestEnvironment.Config |
createConfig() |
KafkaTestEnvironment.KafkaOffsetHandler |
createOffsetHandler() |
void |
createTestTopic(String topic,
int numberOfPartitions,
short replicationFactor) |
void |
createTestTopic(String topic,
int numberOfPartitions,
short replicationFactor,
Properties properties) |
void |
deleteTestTopic(String topic) |
<K,V> Collection<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> |
getAllRecordsFromTopic(Properties properties,
String topic,
int partition,
long timeout) |
String |
getBrokerConnectionString() |
int |
getBrokerId(kafka.server.KafkaServer server) |
List<kafka.server.KafkaServer> |
getBrokers() |
int |
getLeaderToShutDown(String topic) |
Properties |
getSecureProperties() |
Properties |
getStandardProperties() |
String |
getVersion() |
boolean |
isSecureRunSupported() |
void |
prepare(KafkaTestEnvironment.Config config) |
void |
restartBroker(int leaderId) |
void |
shutdown() |
static final String KAFKA_HOST
static KafkaTestEnvironment.Config createConfig()
void prepare(KafkaTestEnvironment.Config config)
void shutdown()
void deleteTestTopic(String topic)
void createTestTopic(String topic, int numberOfPartitions, short replicationFactor, Properties properties)
void createTestTopic(String topic, int numberOfPartitions, short replicationFactor)
Properties getStandardProperties()
Properties getSecureProperties()
String getBrokerConnectionString()
String getVersion()
List<kafka.server.KafkaServer> getBrokers()
<K,V> Collection<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> getAllRecordsFromTopic(Properties properties, String topic, int partition, long timeout)
KafkaTestEnvironment.KafkaOffsetHandler createOffsetHandler()
int getBrokerId(kafka.server.KafkaServer server)
boolean isSecureRunSupported()
Copyright © 2019. All rights reserved.