Class: MQBench::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/mqbench/client.rb

Direct Known Subclasses

AMQP, Kafka, STOMP

Constant Summary collapse

QNAME =
"benchmark9-#{(rand * 10000).to_i}"

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Client

Returns a new instance of Client.



5
6
7
8
9
10
11
12
# File 'lib/mqbench/client.rb', line 5

def initialize(args = {})
  @size = args[:size] if args.key? :size
  @host = args[:host] if args.key? :host
  @port = args[:port] if args.key? :port
  @user = args[:user] if args.key? :user
  @pass = args[:pass] if args.key? :pass
  @count = args[:count] if args.key? :count
end