public class EmbeddedKafkaCluster extends Object implements TestQueryConstants
AVRO_TOPIC, BROKER_DELIM, INVALID_TOPIC, JSON_PUSHDOWN_TOPIC, JSON_TOPIC, KAFKA_MSG_OFFSET_FIELD, KAFKA_MSG_TIMESTAMP_FIELD, KAFKA_PARTITION_ID_FIELD, LOCAL_HOST, MAX_CLIENT_CONNECTIONS, MAX_OFFSET_QUERY, MIN_OFFSET_QUERY, MSG_COUNT_QUERY, MSG_SELECT_QUERY, QUERY_TEMPLATE_AND, QUERY_TEMPLATE_AND_OR_PATTERN_1, QUERY_TEMPLATE_AND_OR_PATTERN_2, QUERY_TEMPLATE_AND_OR_PATTERN_3, QUERY_TEMPLATE_BASIC, QUERY_TEMPLATE_OR, TICK_TIME, ZK_TMP| Constructor and Description |
|---|
EmbeddedKafkaCluster() |
EmbeddedKafkaCluster(Properties props) |
EmbeddedKafkaCluster(Properties baseProps,
int numberOfBrokers) |
| Modifier and Type | Method and Description |
|---|---|
List<kafka.server.KafkaServer> |
getBrokers() |
String |
getKafkaBrokerList() |
Properties |
getProps() |
ZookeeperHelper |
getZkServer() |
void |
registerToClose(AutoCloseable autoCloseable) |
void |
setBrokers(List<kafka.server.KafkaServer> brokers) |
void |
shutDownBroker(int brokerId) |
void |
shutDownCluster() |
public EmbeddedKafkaCluster()
throws IOException
IOExceptionpublic EmbeddedKafkaCluster(Properties props) throws IOException
IOExceptionpublic EmbeddedKafkaCluster(Properties baseProps, int numberOfBrokers) throws IOException
IOExceptionpublic void shutDownCluster()
public void shutDownBroker(int brokerId)
public Properties getProps()
public List<kafka.server.KafkaServer> getBrokers()
public void setBrokers(List<kafka.server.KafkaServer> brokers)
public ZookeeperHelper getZkServer()
public String getKafkaBrokerList()
public void registerToClose(AutoCloseable autoCloseable)
Copyright © 2021 The Apache Software Foundation. All rights reserved.