public class ZkBrokerReader extends java.lang.Object implements IBrokerReader
Constructor and Description |
---|
ZkBrokerReader(java.util.Map<java.lang.String,java.lang.Object> conf,
java.lang.String topic,
ZkHosts hosts) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.List<GlobalPartitionInformation> |
getAllBrokers() |
GlobalPartitionInformation |
getBrokerForTopic(java.lang.String topic) |
public ZkBrokerReader(java.util.Map<java.lang.String,java.lang.Object> conf, java.lang.String topic, ZkHosts hosts)
public GlobalPartitionInformation getBrokerForTopic(java.lang.String topic)
getBrokerForTopic
in interface IBrokerReader
public java.util.List<GlobalPartitionInformation> getAllBrokers()
getAllBrokers
in interface IBrokerReader
public void close()
close
in interface IBrokerReader