Class: SenderClient
- Inherits:
-
Object
- Object
- SenderClient
- Defined in:
- lib/sender_client.rb
Overview
SenderClient parses arguments and runs sender
Instance Method Summary collapse
-
#initialize(args) ⇒ SenderClient
constructor
- Initialization of sender client, parsing sender client arguments and sender client run ==== Parameters args
-
sender client arguments.
Constructor Details
#initialize(args) ⇒ SenderClient
Initialization of sender client, parsing sender client arguments and sender client run
Parameters
- args
-
sender client arguments
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/sender_client.rb', line 30 def initialize(args) # Parse arguments = Options::SenderOptionParser.new(args) # Create sender handler sender_handler = Handlers::SenderHandler.new( ..broker, ..log_msgs, ..msg_content_hashed, ..count, ..msg_properties, ..msg_content, ..msg_content_type, ..msg_durable, ..msg_ttl, ..msg_correlation_id, ..msg_reply_to, ..msg_group_id, ..msg_to, ..msg_priority, ..msg_id, ..msg_user_id, ..msg_subject, ..anonymous, ..sasl_mechs, ..idle_timeout, ..max_frame_size, ..sasl_enabled, ..log_lib, ..auto_settle_off, ..exit_timer, ..duration, ..duration_mode ) # Run sender client Qpid::Proton::Container.new(sender_handler).run end |