public class DynamicBrokersReader extends Object
Constructor and Description |
---|
DynamicBrokersReader(Map conf,
String zkStr,
String zkPath,
String topic) |
Modifier and Type | Method and Description |
---|---|
String |
brokerPath() |
void |
close() |
List<GlobalPartitionInformation> |
getBrokerInfo()
Get all partitions with their current leaders
|
String |
partitionPath(String topic) |
String |
topicsPath() |
public List<GlobalPartitionInformation> getBrokerInfo() throws SocketTimeoutException
Get all partitions with their current leaders
SocketTimeoutException
public String topicsPath()
public String brokerPath()
public void close()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.