heat.common.messaging 模块

class heat.common.messaging.RequestContextSerializer(base)[源代码]

基类: Serializer

static deserialize_context(ctxt)[源代码]

将字典反序列化为请求上下文。

参数:

ctxt – 请求上下文字典

返回值:

实体的反序列化形式

deserialize_entity(ctxt, entity)[源代码]

从原始形式反序列化某些内容。

参数:
  • ctxt – 反序列化形式的请求上下文

  • entity – 要反序列化的原始数据

返回值:

实体的反序列化形式

static serialize_context(ctxt)[源代码]

将请求上下文序列化为字典。

参数:

ctxt – 请求上下文

返回值:

上下文的序列化形式

serialize_entity(ctxt, entity)[源代码]

将某些内容序列化为原始形式。

参数:
  • ctxt – 反序列化形式的请求上下文

  • entity – 要序列化的实体

返回值:

实体的序列化形式

heat.common.messaging.cleanup()[源代码]

清理 oslo_messaging 层。

heat.common.messaging.get_notifier(publisher_id)[源代码]

返回配置的 oslo_messaging 通知器。

heat.common.messaging.get_rpc_client(**kwargs)[源代码]

返回配置的 oslo_messaging RPCClient。

heat.common.messaging.get_rpc_server(target, endpoint)[源代码]

返回配置的 oslo_messaging rpc 服务器。

heat.common.messaging.get_specific_transport(url, optional, exmods, is_for_notifications=False)[源代码]
heat.common.messaging.setup(url=None, optional=False)[源代码]

初始化 oslo_messaging 层。

heat.common.messaging.setup_transports(url, optional)[源代码]