glance.common.rpc Module¶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.
| Parameters: | 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.
| Parameters: |
|
|---|---|
| Raises: | 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.