Sha256: 046da90a62c8a643812e3007ffa0a3a4865c5e95ca0d21e2327de49eea574e0c

Contents?: true

Size: 305 Bytes

Versions: 35

Compression:

Stored size: 305 Bytes

Contents

# Represents a broker in a Kafka cluster.
module Kafka
  class BrokerInfo
    attr_reader :node_id, :host, :port

    def initialize(node_id:, host:, port:)
      @node_id = node_id
      @host = host
      @port = port
    end

    def to_s
      "#{host}:#{port} (node_id=#{node_id})"
    end
  end
end

Version data entries

35 entries across 35 versions & 4 rubygems

Version Path
ruby-kafka-1.5.0 lib/kafka/broker_info.rb
ruby-kafka-aws-iam-1.4.5 lib/kafka/broker_info.rb
ruby-kafka-aws-iam-1.4.4 lib/kafka/broker_info.rb
ruby-kafka-aws-iam-1.4.3 lib/kafka/broker_info.rb
ruby-kafka-aws-iam-1.4.2 lib/kafka/broker_info.rb
ruby-kafka-aws-iam-1.4.1 lib/kafka/broker_info.rb
ruby-kafka-1.4.0 lib/kafka/broker_info.rb
ruby-kafka-temp-fork-0.0.2 lib/kafka/broker_info.rb
ruby-kafka-temp-fork-0.0.1 lib/kafka/broker_info.rb
ruby-kafka-1.3.0 lib/kafka/broker_info.rb
ruby-kafka-1.2.0 lib/kafka/broker_info.rb
ruby-kafka-1.1.0 lib/kafka/broker_info.rb
ruby-kafka-1.1.0.beta1 lib/kafka/broker_info.rb
ruby-kafka-1.0.0 lib/kafka/broker_info.rb
ruby-kafka-0.7.10 lib/kafka/broker_info.rb
ruby-kafka-0.7.9 lib/kafka/broker_info.rb
ruby-kafka-0.7.8 lib/kafka/broker_info.rb
ruby-kafka-0.7.7 lib/kafka/broker_info.rb
ruby-kafka-custom-0.7.7.26 lib/kafka/broker_info.rb
ruby-kafka-0.7.6 lib/kafka/broker_info.rb