Class: DTR::Monitor::AgentsMonitor

Inherits:
Object
  • Object
show all
Includes:
Adapter::Master
Defined in:
lib/dtr/monitor.rb

Instance Method Summary collapse

Methods included from Adapter::Master

#do_wakeup_agents, #group_agents_should_die, #hypnotize_agents, #with_wakeup_agents

Instance Method Details

#monitorObject



30
31
32
33
34
35
36
37
38
39
# File 'lib/dtr/monitor.rb', line 30

def monitor
  DTR.configuration.with_rinda_server do
    with_wakeup_agents do
      begin
        sleep
      rescue Interrupt
      end
    end
  end
end

#startObject



25
26
27
28
29
# File 'lib/dtr/monitor.rb', line 25

def start
  Process.fork do
    monitor
  end
end