Package ganeti :: Package rpc :: Module client
[hide private]
[frames] | no frames]

Module client

source code

Module for generic RPC clients.

Classes [hide private]
  AbstractClient
High-level client abstraction.
  AbstractStubClient
An abstract Client that connects a generated stub client to a Transport.
Functions [hide private]
 
ParseRequest(msg)
Parses a request message.
source code
 
ParseResponse(msg)
Parses a response message.
source code
 
FormatResponse(success, result, version=None)
Formats a response message.
source code
 
FormatRequest(method, args, version=None)
Formats a request message.
source code
 
CallRPCMethod(transport_cb, method, args, version=None)
Send a RPC request via a transport and return the response.
source code
Variables [hide private]
  KEY_METHOD = constants.LUXI_KEY_METHOD
  KEY_ARGS = constants.LUXI_KEY_ARGS
  KEY_SUCCESS = constants.LUXI_KEY_SUCCESS
  KEY_RESULT = constants.LUXI_KEY_RESULT
  KEY_VERSION = constants.LUXI_KEY_VERSION

Imports: logging, time, t, constants, errors, ProtocolError, RequestError, LuxiError, serializer