View Source Commanded.Registration.GlobalRegistry (Commanded v1.4.8)

Distributed process registration using Erlangs :global registry[1].

[1] http://erlang.org/doc/man/global.html

Summary

Functions

Return an optional supervisor spec for the registry

Starts a uniquely named child process of a supervisor using the given module and args.

Starts a uniquely named GenServer process for the given module and args.

Return a :via tuple to route a message to a process by its registered name

Get the pid of a registered name.

Functions

child_spec(application, config)

Return an optional supervisor spec for the registry

start_child(adapter_meta, name, supervisor, child_spec)

Starts a uniquely named child process of a supervisor using the given module and args.

Registers the pid with the given name.

start_link(adapter_meta, name, module, args, start_opts)

Starts a uniquely named GenServer process for the given module and args.

Registers the pid with the given name.

supervisor_child_spec(adapter_meta, module, arg)

Starts a supervisor.

via_tuple(adapter_meta, name)

Return a :via tuple to route a message to a process by its registered name

whereis_name(adapter_meta, name)

Get the pid of a registered name.

Returns :undefined if the name is unregistered.