Class Client
source code
RPC Client class.
This class, given a (remote) method name, a list of parameters and a
list of nodes, will contact (in parallel) all nodes, and return a dict of
results (key: node name, value: result).
One current bug is that generic failure is still signaled by 'False'
result, which is not good. This overloading of values can cause bugs.
ConnectList(self,
node_list,
address_list=None)
| source code
|
Add a list of nodes to the target nodes.
- Parameters:
node_list (list) - the list of node names to connect
address_list (list or None) - either None or a list with node addresses, which must have the
same length as the node list
|
|
Add a node to the target list.
- Parameters:
name (str) - the node name
address (str) - the node address, if known
|
|
Call nodes and return results.
- Returns: list
- List of RPC results
|