Class: Beez::Launcher
- Inherits:
-
Object
- Object
- Beez::Launcher
- Defined in:
- lib/beez/launcher.rb
Instance Attribute Summary collapse
-
#supervisor ⇒ Object
readonly
Returns the value of attribute supervisor.
Instance Method Summary collapse
-
#initialize ⇒ Launcher
constructor
A new instance of Launcher.
-
#quiet ⇒ Object
Tells the supervisor to stop processing any more jobs.
-
#start ⇒ Object
Starts the supervisor and job processors.
-
#stop ⇒ Object
Tells the supervisor to stop job processors.
Constructor Details
#initialize ⇒ Launcher
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
#supervisor ⇒ Object (readonly)
Returns the value of attribute supervisor.
5 6 7 |
# File 'lib/beez/launcher.rb', line 5 def supervisor @supervisor end |
Instance Method Details
#quiet ⇒ Object
Tells the supervisor to stop processing any more jobs.
17 18 19 |
# File 'lib/beez/launcher.rb', line 17 def quiet supervisor.quiet end |
#start ⇒ Object
Starts the supervisor and job processors.
12 13 14 |
# File 'lib/beez/launcher.rb', line 12 def start supervisor.start end |
#stop ⇒ Object
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 |