public class ZkBrokerReader extends Object implements IBrokerReader
Constructor and Description |
---|
ZkBrokerReader(Map conf,
String topic,
ZkHosts hosts) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<GlobalPartitionInformation> |
getAllBrokers() |
GlobalPartitionInformation |
getBrokerForTopic(String topic) |
public GlobalPartitionInformation getBrokerForTopic(String topic)
getBrokerForTopic
in interface IBrokerReader
public List<GlobalPartitionInformation> getAllBrokers()
getAllBrokers
in interface IBrokerReader
public void close()
close
in interface IBrokerReader
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.