- partitionsForTopic
Get the list of partitions for this topic
- availablePartitionsForTopic
Get the list of available partitions for this topic
- partitionCountForTopic
- topics
Get all topics.
- <init>
Create a new cluster with the given nodes and partitions
- bootstrap
Create a "bootstrap" cluster using the given list of host/ports
- empty
Create an empty cluster instance with no nodes and no topic-partitions.
- nodes
- partition
Get the metadata for the specified partition
- leaderFor
Get the current leader for the given topic-partition
- nodeById
Get the node by the node id (or null if no such node exists)
- partitionsForNode
Get the list of partitions whose leader is this node