Class: Kafka::FFI::BrokerMetadata
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Kafka::FFI::BrokerMetadata
- Defined in:
- lib/kafka/ffi/broker_metadata.rb
Instance Method Summary collapse
-
#host ⇒ String
Returns the hostname of the Broker.
-
#id ⇒ Integer
Returns the Broker's cluster ID.
-
#port ⇒ Integer
Returns the port used to connect to the Broker.
Instance Method Details
#host ⇒ String
Returns the hostname of the Broker
21 22 23 |
# File 'lib/kafka/ffi/broker_metadata.rb', line 21 def host self[:host] end |
#id ⇒ Integer
Returns the Broker's cluster ID
14 15 16 |
# File 'lib/kafka/ffi/broker_metadata.rb', line 14 def id self[:id] end |
#port ⇒ Integer
Returns the port used to connect to the Broker
28 29 30 |
# File 'lib/kafka/ffi/broker_metadata.rb', line 28 def port self[:port] end |