Class: Dolphin::Manager
- Inherits:
-
Celluloid::SupervisionGroup
- Object
- Celluloid::SupervisionGroup
- Dolphin::Manager
- Includes:
- Util
- Defined in:
- lib/dolphin/manager.rb
Instance Method Summary collapse
- #actor_died(actor, reason) ⇒ Object
- #run_request_handlers ⇒ Object
- #run_workers ⇒ Object
- #shutdown ⇒ Object
- #start ⇒ Object
- #terminate_request_handlers ⇒ Object
- #terminate_workers ⇒ Object
Methods included from Util
Instance Method Details
#actor_died(actor, reason) ⇒ Object
11 12 13 14 15 |
# File 'lib/dolphin/manager.rb', line 11 def actor_died(actor, reason) logger :info, "Actor died" restart_actor(actor, "Breaked actor") logger :info, "Actor restarted" end |
#run_request_handlers ⇒ Object
29 30 |
# File 'lib/dolphin/manager.rb', line 29 def run_request_handlers end |
#run_workers ⇒ Object
23 24 |
# File 'lib/dolphin/manager.rb', line 23 def run_workers end |
#shutdown ⇒ Object
20 21 |
# File 'lib/dolphin/manager.rb', line 20 def shutdown end |
#start ⇒ Object
17 18 |
# File 'lib/dolphin/manager.rb', line 17 def start end |
#terminate_request_handlers ⇒ Object
32 33 |
# File 'lib/dolphin/manager.rb', line 32 def terminate_request_handlers end |
#terminate_workers ⇒ Object
26 27 |
# File 'lib/dolphin/manager.rb', line 26 def terminate_workers end |