Distribunator.Manager (distribunator v1.2.1)
The Distribunator.Manager:
- Makes sure all distributed nodes are
Node.connect()
ed
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Connect to one or more nodes that are not currently connected or monitored
Disconnect from one or more nodes that are currently connected and monitored
Start the genserver with a list of nodes to connect to and monitor
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
connect(nodes)
Connect to one or more nodes that are not currently connected or monitored
Parameters
nodes
A single node or list of node atoms to connect and monitor
Returns
:ok
All is well, the nodes are being connected and monitored{:error, reason}
Failed for reason
Link to this function
disconnect(nodes)
Disconnect from one or more nodes that are currently connected and monitored
Parameters
nodes
A single node or list of node atoms to disconnect
Returns
:ok
All is well, the nodes are disconnected{:error, reason}
Failed for reason
Link to this function
do_connect(state, new_nodes)
Link to this function
do_disconnect(state, disconnect_nodes)
Link to this function
do_reconcile(state)
Link to this function
start_link(absent_nodes \\ [])
Start the genserver with a list of nodes to connect to and monitor
Parameters
absent_nodes
The list of nodes (each passable toNode.connect
) that this GenServer will connect to and monitor
Returns
- See
GenServer::on_start