cloister v0.6.1 Cloister.Node View Source

The abstraction level allowing milticalls and multicasts across the whole cluster.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Casts the request to all the nodes passed as a parameter.

Casts the request to all the nodes connected to this node

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

multicall(nodes \\ [node() | Node.list()], name, request)

View Source

Specs

multicall(nodes :: [node()], name :: GenServer.name(), request :: term()) ::
  {replies :: [{node(), term()}], bad_nodes :: [node()]}

Casts the request to all the nodes passed as a parameter.

Link to this function

multicast(name, request)

View Source

Specs

multicast(name :: GenServer.name(), request :: term()) :: :abcast

Casts the request to all the nodes connected to this node