Class: Broker::Launcher

Inherits:
Object
  • Object
show all
Defined in:
lib/broker/launcher.rb

Instance Method Summary collapse

Constructor Details

#initializeLauncher

Returns a new instance of Launcher.



46
47
48
49
# File 'lib/broker/launcher.rb', line 46

def initialize
  @poller = Broker::Poller.new
  @finished = false     
end

Instance Method Details

#runObject



51
52
53
54
# File 'lib/broker/launcher.rb', line 51

def run
  puts "launcher is running"
  @poller.start
end

#stopObject



56
57
58
59
60
# File 'lib/broker/launcher.rb', line 56

def stop
  @finished = true     
  @poller.terminate
  puts "launcher stopped"
end