class Beez::Launcher

Attributes

supervisor[R]

Public Class Methods

new() click to toggle source
# File lib/beez/launcher.rb, line 8
def initialize
  @supervisor = ::Beez::Supervisor.new
end

Public Instance Methods

quiet() click to toggle source

Tells the supervisor to stop processing any more jobs.

# File lib/beez/launcher.rb, line 18
def quiet
  supervisor.quiet
end
start() click to toggle source

Starts the supervisor and job processors.

# File lib/beez/launcher.rb, line 13
def start
  supervisor.start
end
stop() click to toggle source

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

# File lib/beez/launcher.rb, line 25
def stop
  supervisor.stop
end

Private Instance Methods

client() click to toggle source
# File lib/beez/launcher.rb, line 31
def client
  ::Beez.client
end