Class: Celluloid::Supervision::Service::Root

Inherits:
Container
  • Object
show all
Defined in:
lib/celluloid/supervision/service.rb

Constant Summary

Constants included from Celluloid

BARE_OBJECT_WARNING_MESSAGE, LINKING_TIMEOUT, OWNER_IVAR, VERSION

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, #pool, pool, #remove, #remove_accessors, #restart_actor, run, run!, #shutdown, #supervise, supervise, top

Methods included from Celluloid

#abort, actor?, #after, #async, boot, #call_chain_id, cores, #current_actor, #defer, detect_recursion, #every, exception_handler, #exclusive, #exclusive?, #future, included, init, #link, #linked_to?, #links, mailbox, #monitor, #monitoring?, public_registry, publish, #receive, register_shutdown, running?, shutdown, #signal, #sleep, stack_dump, stack_summary, start, supervise, suspend, #tasks, #terminate, #timeout, #unlink, #unmonitor, uuid, version, #wait

Constructor Details

This class inherits a constructor from Celluloid::Supervision::Container

Class Method Details

.defineObject


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

#providerObject


20
21
22
# File 'lib/celluloid/supervision/service.rb', line 20

def provider
  Celluloid.root_services
end