class documentation
class AbstractClient(object):
Known subclasses: ganeti.luxi.Client
, ganeti.rpc.client.AbstractStubClient
High-level client abstraction.
This uses a backing Transport-like class on top of which it implements data serialization/deserialization.
Method | __init__ |
Constructor for the Client class. |
Method |
|
Send a generic request and return the response. |
Method |
|
Close the underlying connection. |
Method | close |
Same as Close , to be used with contextlib.closing(...). |
Instance Variable | allow |
Undocumented |
Instance Variable | timeouts |
Undocumented |
Instance Variable | transport |
Undocumented |
Instance Variable | transport |
Undocumented |
Instance Variable | version |
Undocumented |
Method | _ |
Close the transport, ignoring errors. |
Method | _ |
Returns the socket address |
Method | _ |
(Re)initialize the transport if needed. |
Method | _ |
Undocumented |
overridden in
ganeti.luxi.Client
, ganeti.rpc.client.AbstractStubClient
Constructor for the Client class.
If timeout is not passed, the default timeouts of the transport class are used.
Parameters | |
timeouts:list of ints | timeouts to be used on connect and read/write |
transport:Transport or another compatible class | the underlying transport to use for the RPC calls |
allow | skip checks for the master node on errors |