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

Instance Method Details

#endpointObject

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_pathObject

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.expand_path("supervisor.ipc", root)
end

#nameObject

The name of the supervisor



15
16
17
# File 'lib/falcon/environment/supervisor.rb', line 15

def name
	"supervisor"
end

#service_classObject

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