View Source ProcessHub.Constant.Hook (ProcessHub v0.1.0-alpha)

Available hooks for ProcessHub.

Summary

Functions

Hook triggered when a process is migrated to another node.

Hook triggered when a new node is registered under the ProcessHub cluster.

Hook triggered when a node is unregistered from the ProcessHub cluster.

Hook triggered after processes are redistributed.

Hook triggered before processes are redistributed.

Hook triggered when the priority level of the local event queue has been updated.

Hook triggered when a new process is registered in the ProcessHub registry.

Hook triggered when a process is unregistered from the ProcessHub registry.

Functions

@spec child_migrated() :: :child_migrated_hook

Hook triggered when a process is migrated to another node.

@spec cluster_join() :: :cluster_join_hook

Hook triggered when a new node is registered under the ProcessHub cluster.

@spec cluster_leave() :: :cluster_leave_hook

Hook triggered when a node is unregistered from the ProcessHub cluster.

Link to this function

post_nodes_redistribution()

View Source
@spec post_nodes_redistribution() :: :post_nodes_redistribution_hook

Hook triggered after processes are redistributed.

Link to this function

pre_nodes_redistribution()

View Source
@spec pre_nodes_redistribution() :: :pre_nodes_redistribution_hook

Hook triggered before processes are redistributed.

Link to this function

priority_state_updated()

View Source
@spec priority_state_updated() :: :priority_state_updated_hook

Hook triggered when the priority level of the local event queue has been updated.

@spec registry_pid_inserted() :: :registry_pid_insert_hook

Hook triggered when a new process is registered in the ProcessHub registry.

@spec registry_pid_removed() :: :registry_pid_remove_hook

Hook triggered when a process is unregistered from the ProcessHub registry.