class documentation
class _RpcProcessor(object):
Undocumented
Method | __call__ |
Makes an RPC request to a number of nodes. |
Method | __init__ |
Initializes this class. |
Static Method | _ |
Combines pre-computed results for offline hosts with actual call results. |
Static Method | _ |
Prepares requests by sorting offline hosts into separate list. |
Instance Variable | _lock |
Undocumented |
Instance Variable | _port |
Undocumented |
Instance Variable | _resolver |
Undocumented |
Makes an RPC request to a number of nodes.
Parameters | |
nodes:sequence | node UUIDs or Hostnames |
procedure:string | Request path |
body:dictionary | dictionary with request bodies per host |
read | Read timeout for request |
resolver | Undocumented |
_req | Undocumented |
Returns | |
dictionary | a dictionary mapping host names to rpc.RpcResult objects |
Initializes this class.
Parameters | |
resolver | callable accepting a list of node UUIDs or hostnames, returning a list of tuples containing name, IP address and original name of the resolved node. IP address can be the name or the special value _OFFLINE to mark offline machines. |
port:int | TCP port |
lock | Callable for registering with lock monitor |