cinder.rpc module¶
- class RequestContextSerializer(base)¶
Bases:
Serializer
- deserialize_context(context)¶
Deserialize a dictionary into a request context.
- Parameters:
ctxt – Request context dictionary
- Returns:
Deserialized form of entity
- deserialize_entity(context, entity)¶
Deserialize something from primitive form.
- Parameters:
ctxt – Request context, in deserialized form
entity – Primitive to be deserialized
- Returns:
Deserialized form of entity
- serialize_context(context)¶
Serialize a request context into a dictionary.
- Parameters:
ctxt – Request context
- Returns:
Serialized form of context
- serialize_entity(context, entity)¶
Serialize something to primitive form.
- Parameters:
ctxt – Request context, in deserialized form
entity – Entity to be serialized
- Returns:
Serialized form of entity
- add_extra_exmods(*args)¶
- cleanup()¶
- clear_extra_exmods()¶
- get_allowed_exmods()¶
- get_client(target, version_cap=None, serializer=None) RPCClient ¶
- get_notifier(service: str = None, host: str = None, publisher_id: str = None) Notifier ¶
- get_server(target, endpoints, serializer=None) RPCServer ¶
- init(conf) None ¶
- set_defaults(control_exchange)¶