View Source ProcessHub.Strategy.PartitionTolerance.Base protocol (ProcessHub v0.1.0-alpha)

The partition tolerance strategy protocol defines the behavior for handling node up and down events in the ProcessHub cluster.

Summary

Functions

This function is called when a new node leaves the ProcessHub cluster.

This function is called when a new node joins the ProcessHub cluster.

This function is called when ProcessHub is starting up.

Types

Functions

Link to this function

handle_node_down(strategy, hub_id, node, cluster_nodes)

View Source
@spec handle_node_down(t(), ProcessHub.hub_id(), node(), [node()]) :: :ok

This function is called when a new node leaves the ProcessHub cluster.

Link to this function

handle_node_up(strategy, hub_id, node, cluster_nodes)

View Source
@spec handle_node_up(t(), ProcessHub.hub_id(), node(), [node()]) :: :ok

This function is called when a new node joins the ProcessHub cluster.

Link to this function

handle_startup(strategy, hub_id, cluster_nodes)

View Source
@spec handle_startup(t(), ProcessHub.hub_id(), [node()]) :: :ok

This function is called when ProcessHub is starting up.