Class: Beez::Launcher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLauncher

Returns a new instance of Launcher.



7
8
9
# File 'lib/beez/launcher.rb', line 7

def initialize
  @supervisor = ::Beez::Supervisor.new
end

Instance Attribute Details

#supervisorObject (readonly)

Returns the value of attribute supervisor.



5
6
7
# File 'lib/beez/launcher.rb', line 5

def supervisor
  @supervisor
end

Instance Method Details

#quietObject

Tells the supervisor to stop processing any more jobs.



17
18
19
# File 'lib/beez/launcher.rb', line 17

def quiet
  supervisor.quiet
end

#startObject

Starts the supervisor and job processors.



12
13
14
# File 'lib/beez/launcher.rb', line 12

def start
  supervisor.start
end

#stopObject

Tells the supervisor to stop job processors. This method blocks until all processors are complete and stopped. It can take up to configurable timeout.



24
25
26
# File 'lib/beez/launcher.rb', line 24

def stop
  supervisor.stop
end