RPC Controller
glance.common.rpc.
Controller
(raise_exc=False)[source]¶Bases: object
Base RPCController.
This is the base controller for RPC based APIs. Commands handled by this controller respect the following form:
[{
'command': 'method_name',
'kwargs': {...}
}]
The controller is capable of processing more than one command per request and will always return a list of results.
raise_exc (bool) – Specifies whether to raise exceptions instead of “serializing” them.
register
(resource, filtered=None, excluded=None, refiner=None)[source]¶Exports methods through the RPC Api.
resource – Resource’s instance to register.
filtered – List of methods that can be registered. Read as “Method must be in this list”.
excluded – List of methods to exclude.
refiner – Callable to use as filter for methods.
TypeError – If refiner is not callable.
glance.common.rpc.
RPCClient
(*args, **kwargs)[source]¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.