Distributed v0.1.0 Distributed.Node View Source
Functions in Distributed.Node
module help to know which node is the master and which are the slaves.
Link to this section Summary
Functions
Returns true if the node
is the master node, otherwise false
Returns true if the node
is a slave node, otherwise false
Returns a list of names of all the nodes, including master. See also Distributed.Node.Iterator
Returns name of the master node
Returns a list of names of the slave nodes
Link to this section Functions
Link to this function
is_master?(node, opts \\ [])
View Source
is_master?(node :: atom, opts :: [any]) :: boolean
Returns true if the node
is the master node, otherwise false.
Link to this function
is_slave?(node, opts \\ [])
View Source
is_slave?(node :: atom, opts :: [any]) :: boolean
Returns true if the node
is a slave node, otherwise false.
Returns a list of names of all the nodes, including master. See also Distributed.Node.Iterator
.
Returns name of the master node.
Returns a list of names of the slave nodes.