Beethoven.Core.MnesiaNotify (Beethoven v0.2.3)

Library to reduce code length of Core server. Only handles hand_info messages about Mnesia changes.

Summary

Functions

Logic when a new node is added to the 'Beethoven.Tracker' table / Cluster

Node changed from online to offline in 'Beethoven.Tracker' table

Node changed from offline to online in 'Beethoven.Tracker' table

Entry function to decide what is done when the Mnesia Event occurs.

Functions

new_node(nodeName)

@spec new_node(atom()) :: :ok

Logic when a new node is added to the 'Beethoven.Tracker' table / Cluster

offline_node(nodeName)

@spec offline_node(atom()) :: :ok

Node changed from online to offline in 'Beethoven.Tracker' table

online_node(nodeName)

@spec online_node(atom()) :: :ok

Node changed from offline to online in 'Beethoven.Tracker' table

run(event)

@spec run(any()) :: :ok

Entry function to decide what is done when the Mnesia Event occurs.