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

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

Summary

Functions

Hook triggered when a process is migrated to another node.

Hook triggered when a process is migrated to another node.

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 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 when a new process is registered in the ProcessHub registry.

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

Functions

@spec children_migrated() :: :children_migrated_hook

Hook triggered when a process is migrated to another node.

@spec forwarded_migration() :: :forwarded_migration_hook

Hook triggered when a process is migrated to another node.

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

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