Class: ThorBoot::Client

Inherits:
Node show all
Defined in:
lib/boot/Client.rb

Class Method Summary collapse

Methods inherited from Boot

default_options, default_options_amqp, default_options_em, default_options_sql, merge_options

Class Method Details

.boot_jobsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/boot/Client.rb', line 9

def self.boot_jobs
  opts_node = {:channel_nodes => "clients"}
  opts_client = {}
  opts_monitor_client = {
    :channel_request => "monitor.request",
    :channel_response => "monitor.response"  
  }
  boot_jobs = [
    {:name => "Node-0.0.1", :options => merge_options(opts_node)},
    {:name => "Client-0.0.1", :options => merge_options(opts_client)},
    {:name => "MonitorClient-0.0.1", :options => merge_options(opts_monitor_client)}
  ]
  return (super() + boot_jobs)
end