Class: Celluloid::Supervision::Service::Root
- Inherits:
-
Container
- Object
- Container
- Celluloid::Supervision::Service::Root
show all
- Defined in:
- lib/celluloid/supervision/service.rb
Constant Summary
Constants included
from Celluloid
Celluloid::SupervisionGroup
Instance Attribute Summary
Attributes inherited from Container
#registry
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Container
#[], #actors, #add, #add_accessors, blocks, #find, #initialize, #remove, #remove_accessors, #restart_actor, run, run!, #shutdown, supervise, #supervise, #supervise_as, supervise_as, top
Methods included from Celluloid
supervise, supervise_as
Class Method Details
.define ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/celluloid/supervision/service.rb', line 6
def define
super({
supervise: Celluloid.actor_system.root_configuration,
as: :root_supervisor,
accessors: [:root],
branch: :root,
type: self,
})
end
|
.deploy(instances) ⇒ Object
16
17
18
|
# File 'lib/celluloid/supervision/service.rb', line 16
def deploy(instances)
super(supervise: instances, branch: :root, as: :root, type: self)
end
|
Instance Method Details
#provider ⇒ Object
20
21
22
|
# File 'lib/celluloid/supervision/service.rb', line 20
def provider
Celluloid.root_services
end
|