public void createTopic( String topic, int numPartitions, int replicationFactor, Properties topicConfig) { if (!AdminUtils.topicExists(server.zkClient(), topic)) { AdminUtils.createTopic( server.zkClient(), topic, numPartitions, replicationFactor, topicConfig); awaitPropagation(topic, 0, 2000l); } }
public boolean isTopicAvailable() { return AdminUtils.topicExists(zkClient, topicName); }