View Source ProcessHub.Utility.Name (ProcessHub v0.2.0-alpha)

Utility functions for generating names processes/ETS tables registered under the hub_id.

Summary

Functions

Concatenates the given atoms/binary with the given separator.

The name of main coordinator process.

The name distributed supervisor process.

The name of the event queue process.

The name of the hook registry process.

The name of the main initializer process.

Returns the localstorage identifier.

Returns the process registry table identifier.

The name of the task supervisor process.

Functions

Link to this function

concat_name(atoms, separator)

View Source
@spec concat_name([atom() | binary()], binary()) :: atom()

Concatenates the given atoms/binary with the given separator.

@spec coordinator(ProcessHub.hub_id()) :: atom()

The name of main coordinator process.

Link to this function

distributed_supervisor(hub_id)

View Source
@spec distributed_supervisor(ProcessHub.hub_id()) :: atom()

The name distributed supervisor process.

@spec event_queue(ProcessHub.hub_id()) :: atom()

The name of the event queue process.

@spec hook_registry(ProcessHub.hub_id()) :: atom()

The name of the hook registry process.

@spec initializer(ProcessHub.hub_id()) :: atom()

The name of the main initializer process.

@spec local_storage(ProcessHub.hub_id()) :: atom()

Returns the localstorage identifier.

@spec registry(ProcessHub.hub_id()) :: atom()

Returns the process registry table identifier.

@spec task_supervisor(ProcessHub.hub_id()) :: atom()

The name of the task supervisor process.

@spec worker_queue(ProcessHub.hub_id()) :: atom()