View Source SwarmEx.ClientSupervisor (SwarmEx v0.2.0)

Supervisor for SwarmEx client processes.

Manages the lifecycle of client processes with proper error handling and restart strategies. Each client represents a network of agents and is supervised independently.

Summary

Functions

Returns a specification to start this module under a supervisor.

Counts the number of active client processes.

Lists all active client processes.

Starts a new client process under supervision.

Terminates a client process and all its associated agents.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec count_clients() :: non_neg_integer()

Counts the number of active client processes.

@spec list_clients() :: [pid()]

Lists all active client processes.

Link to this function

start_client(opts \\ [])

View Source
@spec start_client(keyword()) :: DynamicSupervisor.on_start_child()

Starts a new client process under supervision.

Link to this function

terminate_client(client_pid)

View Source
@spec terminate_client(pid()) :: :ok | {:error, term()}

Terminates a client process and all its associated agents.