Module: Falcon::Environment::Supervisor
- Defined in:
- lib/falcon/environment/supervisor.rb
Overview
Provides an environment for hosting a supervisor which can monitor multiple applications.
Instance Method Summary collapse
-
#endpoint ⇒ Object
The endpoint the supervisor will bind to.
-
#ipc_path ⇒ Object
The IPC path to use for communication with the supervisor.
-
#name ⇒ Object
The name of the supervisor.
-
#service_class ⇒ Object
The service class to use for the supervisor.
Instance Method Details
#endpoint ⇒ Object
The endpoint the supervisor will bind to.
27 28 29 |
# File 'lib/falcon/environment/supervisor.rb', line 27 def endpoint Async::IO::Endpoint.unix(ipc_path) end |
#ipc_path ⇒ Object
The IPC path to use for communication with the supervisor.
21 22 23 |
# File 'lib/falcon/environment/supervisor.rb', line 21 def ipc_path ::File.("supervisor.ipc", root) end |
#name ⇒ Object
The name of the supervisor
15 16 17 |
# File 'lib/falcon/environment/supervisor.rb', line 15 def name "supervisor" end |
#service_class ⇒ Object
The service class to use for the supervisor.
33 34 35 |
# File 'lib/falcon/environment/supervisor.rb', line 33 def service_class ::Falcon::Service::Supervisor end |