Skip to content

Commit

Permalink
retrieve kafka metadata method
Browse files Browse the repository at this point in the history
  • Loading branch information
nasark committed May 2, 2024
1 parent 3f7db72 commit 7d9446d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/manageiq/messaging/kafka/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def topics
Rdkafka::Metadata.new(native_kafka).topics.collect { |topic| topic[:topic_name] }
end

def metadata
native_kafka = producer.instance_variable_get(:@native_kafka)
Rdkafka::Admin.new(native_kafka).metadata
end

private

attr_reader :kafka_client
Expand Down

0 comments on commit 7d9446d

Please sign in to comment.