public class ZkClientQuotaClusterDescriber extends Object implements ClientQuotaClusterDescriber
Modifier and Type | Class and Description |
---|---|
static class |
ZkClientQuotaClusterDescriber.PartitionIterator |
ClientQuotaClusterDescriber.Partition
Constructor and Description |
---|
ZkClientQuotaClusterDescriber(Cluster cluster) |
Modifier and Type | Method and Description |
---|---|
Cluster |
cluster() |
Iterator<ClientQuotaClusterDescriber.Partition> |
partitionsForTopic(String topicName)
For the given topic, return the leader of each partition.
|
Iterator<String> |
topicNames()
Get an iterator through all the topic names in the cluster.
|
public ZkClientQuotaClusterDescriber(Cluster cluster)
public Iterator<String> topicNames()
ClientQuotaClusterDescriber
topicNames
in interface ClientQuotaClusterDescriber
public Iterator<ClientQuotaClusterDescriber.Partition> partitionsForTopic(String topicName)
ClientQuotaClusterDescriber
partitionsForTopic
in interface ClientQuotaClusterDescriber
public Cluster cluster()