public class EmbeddedKafkaCluster
extends java.lang.Object
Constructor and Description |
---|
EmbeddedKafkaCluster(java.lang.String zkConnection) |
EmbeddedKafkaCluster(java.lang.String zkConnection,
java.util.Properties baseProperties) |
EmbeddedKafkaCluster(java.lang.String zkConnection,
java.util.Properties baseProperties,
java.util.List<java.lang.Integer> ports) |
Modifier and Type | Method and Description |
---|---|
void |
createTopic(java.lang.String topic,
int partitionCount) |
void |
createTopics(java.lang.String... topics) |
java.lang.String |
getBrokerList() |
java.util.List<java.lang.Integer> |
getPorts() |
java.util.Properties |
getProps() |
java.lang.String |
getZkConnection() |
kafka.utils.ZkUtils |
getZkUtils() |
void |
shutdown() |
void |
startup() |
java.lang.String |
toString() |
public EmbeddedKafkaCluster(java.lang.String zkConnection)
public EmbeddedKafkaCluster(java.lang.String zkConnection, java.util.Properties baseProperties)
public EmbeddedKafkaCluster(java.lang.String zkConnection, java.util.Properties baseProperties, java.util.List<java.lang.Integer> ports)
public kafka.utils.ZkUtils getZkUtils()
public void createTopic(java.lang.String topic, int partitionCount)
public void createTopics(java.lang.String... topics)
public void startup()
public java.util.Properties getProps()
public java.lang.String getBrokerList()
public java.util.List<java.lang.Integer> getPorts()
public java.lang.String getZkConnection()
public void shutdown()
public java.lang.String toString()
toString
in class java.lang.Object