Async::Container::SupervisorSourceAsyncContainerSupervisorService

class Service

Definitions

def initialize(...)

Initialize the supervisor using the given environment.

Signature

parameter environment Build::Environment

Implementation

def initialize(...)
	super
	
	@bound_endpoint = nil
end

def endpoint

The endpoint which the supervisor will bind to. Typically a unix pipe in the same directory as the host.

Implementation

def endpoint
	@evaluator.endpoint
end

def start

Bind the supervisor to the specified endpoint.

Implementation

def start
	@bound_endpoint = self.endpoint.bound
	
	super
end

def stop

Release the bound endpoint.

Implementation

def stop
	@bound_endpoint&.close
	@bound_endpoint = nil
	
	super
end