public class DynamicBrokersReader
extends java.lang.Object
Constructor and Description |
---|
DynamicBrokersReader(java.util.Map<java.lang.String,java.lang.Object> conf,
java.lang.String zkStr,
java.lang.String zkPath,
java.lang.String topic) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
brokerPath() |
void |
close() |
java.util.List<GlobalPartitionInformation> |
getBrokerInfo()
Get all partitions with their current leaders
|
java.lang.String |
partitionPath(java.lang.String topic) |
java.lang.String |
topicsPath() |
public DynamicBrokersReader(java.util.Map<java.lang.String,java.lang.Object> conf, java.lang.String zkStr, java.lang.String zkPath, java.lang.String topic)
public java.util.List<GlobalPartitionInformation> getBrokerInfo() throws java.net.SocketTimeoutException
java.net.SocketTimeoutException
public java.lang.String topicsPath()
public java.lang.String partitionPath(java.lang.String topic)
public java.lang.String brokerPath()
public void close()