Beethoven.BeaconServer (Beethoven v0.3.9)

Beacon Server is used to help other Beethoven node find the cluster. This is the TCP Listener the Beethoven.Locator server will check for.


External API calls

These are calls that can be made from external servers

  • attempt_recover/0 -> casts a recover message to the Beacon server. Will restart the socket if in a failed state. Will do nothing otherwise.

Notes

This TCP listener will communicate via the Beethoven.SeekChat module. This module provides tools and types for interacting over raw TCP packets between the Beacon server and Locator.

Summary

Functions

Attempts a recovery operation on the Beacon Server. If Server is in a failed state, it will attempt to reboot it. If not, nothing will happen.

Returns a specification to start this module under a supervisor.

Entry point for a supervisor.

Functions

attempt_recover()

@spec attempt_recover() :: :ok

Attempts a recovery operation on the Beacon Server. If Server is in a failed state, it will attempt to reboot it. If not, nothing will happen.

Indication of the outcome will be found in the server logs for BeaconServer.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(args)

@spec start_link(any()) :: GenServer.on_start()

Entry point for a supervisor.