class documentation
class AbstractStubClient(AbstractClient):
Known subclasses: ganeti.metad.Client, ganeti.wconfd.Client
An abstract Client that connects a generated stub client to a Transport.
Subclasses should inherit from this class (first) as well and a designated stub (second).
| Method | __init__ |
Constructor for the class. |
| Method | _ |
Undocumented |
| Method | _ |
Returns the socket address |
Inherited from AbstractClient:
| 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 | _ |
(Re)initialize the transport if needed. |
| Method | _ |
Undocumented |
overridden in
ganeti.metad.Client, ganeti.wconfd.ClientConstructor for the class.
Arguments are the same as for AbstractClient. Checks that SOCKET_PATH attribute is defined (in the stub class).
| 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 |