module Supervisor

Nested Classes and Modules

class Client

A client provides a mechanism to connect to a supervisor server in order to execute operations.

module Environment

An environment mixin for supervisor services.

class MemoryMonitor

Monitors worker memory usage and restarts workers that exceed limits.

class Monitor

Base class for supervisor monitors that run periodically within the supervisor process.

class ProcessMonitor

Monitors process metrics and logs them periodically.

class Server

The server represents the main supervisor process which is responsible for managing the lifecycle of other processes.

class Service

The supervisor service implementation.

module Supervised

An environment mixin for supervised worker services.

class SupervisorController

Controller for supervisor operations.

class UtilizationMonitor

Monitors worker utilization metrics aggregated by service name.

class Worker

A worker represents a long running process that can be controlled by the supervisor.

class WorkerController

Controller for worker operations.

Definitions

def self.endpoint(path = "supervisor.ipc")

Get the supervisor IPC endpoint.

Signature

parameter path String

The path for the Unix socket (default: "supervisor.ipc").

returns IO::Endpoint

The Unix socket endpoint.

Implementation

def self.endpoint(path = "supervisor.ipc")
	::IO::Endpoint.unix(path)
end