extreme_system v0.1.2 Extreme.System.AggregateRegistry

Keeps track of registered aggregate pids.

Summary

Functions

Looks up the process pid for id stored in server

Returns true if key is already registered in server, false otherwise

Ensures there is a pid associated with key in server

Starts process registry

Functions

get(server, key)

Looks up the process pid for id stored in server.

Returns {:ok, pid} if the one exists, :error otherwise.

has_key?(server, key)

Returns true if key is already registered in server, false otherwise.

name(aggregate_mod)
register(server, key, pid)

Ensures there is a pid associated with key in server.

Returns :ok once when process is successfully registered

start_link(name)

Starts process registry