View Source ProcessHub.DistributedSupervisor (ProcessHub v0.1.0-alpha)

The ProcessHub distributed supervisor module is responsible for starting and stopping the child processes distributed across the cluster.

Each ProcessHub instance has its own distributed supervisor that manages local child processes.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns true if the child process is running on local node.

Returns the child process ids that are running on local node.

Returns the child process pid if it is running on local node.

Starts a child process on local node.

Stops a child process on local node by first terminating the process and then deleting it from the supervisor child spec list.

Types

@type pname() :: atom()

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

has_child?(distributed_sup, child_id)

View Source

Returns true if the child process is running on local node.

Link to this function

local_child_ids(distributed_sup)

View Source

Returns the child process ids that are running on local node.

Link to this function

local_pid(distributed_sup, child_id)

View Source

Returns the child process pid if it is running on local node.

Link to this function

start_child(distributed_sup, child_spec)

View Source

Starts a child process on local node.

Link to this function

terminate_child(distributed_sup, child_id)

View Source

Stops a child process on local node by first terminating the process and then deleting it from the supervisor child spec list.