Beethoven.Role (Beethoven v0.2.3)

Handles role re/assignment between clusters.

Summary

Functions

Starts server as a child of the root supervisor. Operation runs from a task to avoid hanging the caller waiting for init.

Returns a specification to start this module under a supervisor.

Kills all roles on the server

Entry point for Supervisors. Links calling PID this this child pid.

Functions

async_start()

@spec async_start() :: :ok

Starts server as a child of the root supervisor. Operation runs from a task to avoid hanging the caller waiting for init.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_call(msg, from, state)

Kills all roles on the server

start_link(args)

@spec start_link(any()) :: {:ok, pid()}

Entry point for Supervisors. Links calling PID this this child pid.