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

Defines the list of hooks that can be used to extend the functionality of ProcessHub.

Summary

Functions

Hook triggered right after process has been restarted by local supervisor and the pid has been updated.

Hook triggered when a process is migrated to another node.

Hook triggered inside the coordinator terminate/2 function.

Hook triggered when a process is migrated to another node.

Hook triggered right after the children of a process are started.

Hook triggered when a new node has joined the hub cluster and after handling the node join event.

Hook triggered when a node has left the hub cluster and before handling the node leave event.

Hook triggered after processes are redistributed.

Hook triggered before redistribution of children is called.

Hook triggered before the children of a process are started.

Hook triggered when a new node has joined the hub cluster and before handling the node join event.

Hook triggered when a node has left the hub cluster and before handling the node leave event.

Hook triggered before processes are redistributed.

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

Hook triggered right after processes are started.

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

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

Functions

Link to this function

child_process_pid_update()

View Source
@spec child_process_pid_update() :: :child_process_pid_update_hook

Hook triggered right after process has been restarted by local supervisor and the pid has been updated.

@spec children_migrated() :: :children_migrated_hook

Hook triggered when a process is migrated to another node.

@spec coordinator_shutdown() :: :coordinator_shutdown_hook

Hook triggered inside the coordinator terminate/2 function.

@spec forwarded_migration() :: :forwarded_migration_hook

Hook triggered when a process is migrated to another node.

@spec post_children_start() :: :post_children_start_hook

Hook triggered right after the children of a process are started.

@spec post_cluster_join() :: :post_cluster_join_hook

Hook triggered when a new node has joined the hub cluster and after handling the node join event.

@spec post_cluster_leave() :: :post_cluster_leave_hook

Hook triggered when a node has left the hub cluster and before handling the node leave event.

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_children_redistribution()

View Source
@spec pre_children_redistribution() :: :pre_children_redistribution_hook

Hook triggered before redistribution of children is called.

This is only called with node addition or removal from the cluster.

@spec pre_children_start() :: :pre_children_start_hook

Hook triggered before the children of a process are started.

@spec pre_cluster_join() :: :pre_cluster_join_hook

Hook triggered when a new node has joined the hub cluster and before handling the node join event.

@spec pre_cluster_leave() :: :pre_cluster_leave_hook

Hook triggered when a node has left the hub cluster and before handling the node leave event.

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 process_startups() :: :process_startups_hook

Hook triggered right after processes are started.

@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.