Roger.ApplySystem (roger v3.1.1) View Source

Listener for system-wide events.

On the AMQP side, the systemchannel declares a fanout exchange called 'system' and adds a private queue to it, which it consumes.

This is the apply part of system mostly just to handle NodeInfo requests. Split is done to reduce load of genserver.

Link to this section Summary

Functions

Execute a given command on all nodes, and wait for all nodes to return their values

Execute a given command on all nodes, does not wait for their completion.

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Link to this function

call(command, args \\ nil)

View Source

Execute a given command on all nodes, and wait for all nodes to return their values

Link to this function

cast(command, args \\ nil)

View Source

Execute a given command on all nodes, does not wait for their completion.

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.