@@ -0,0 +1,919 @@
+package com.DemandCube.KafkaSphere.kafka;%0A%0A%0Aimport kafka.javaapi.TopicMetadataRequest;%0Aimport kafka.javaapi.consumer.SimpleConsumer;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A%0Apublic class metrics %7B%0A    public static void main(String%5B%5D args)%7B%0A      List%3Ckafka.javaapi.TopicMetadata%3E data = MetaDataDump();%0A      for (kafka.javaapi.TopicMetadata item : data)%7B%0A        System.out.println(%22topic: %22 + item.topic());%0A      %7D%0A    %7D%0A%0A    public static List%3Ckafka.javaapi.TopicMetadata%3E MetaDataDump()%7B%0A      kafka.javaapi.consumer.SimpleConsumer consumer = new SimpleConsumer(%220.0.0.0%22, 9092, 100000, 64 * 1024, %22metadata%22);%0A      List%3CString%3E topics2 = new ArrayList%3CString%3E();%0A      TopicMetadataRequest req = new TopicMetadataRequest(topics2);%0A      kafka.javaapi.TopicMetadataResponse res = consumer.send(req);%0A      List%3Ckafka.javaapi.TopicMetadata%3E data3 = res.topicsMetadata();%0A      return data3;%0A    %7D;%0A%7D%0A

add - kafka topic metadata