Example #1
0
 public PartitionInfo GetPartition(TopicPartition topicPartition)
 {
     return partitionsByTopicPartition[topicPartition];
 }
Example #2
0
 public Node GetLeaderFor(TopicPartition topicPartition)
 {
     PartitionInfo info = partitionsByTopicPartition[topicPartition];
     if (info == null)
         return null;
     else
         return info.Leader;
 }