def _engine_topic(topic, ctxt, host): '''Get the topic to use for a message. :param topic: the base topic :param ctxt: request context :param host: explicit host to send the message to. :returns: A topic string ''' if not host: host = cfg.CONF.host return rpc.queue_get_for(ctxt, topic, host)
def _engine_topic(topic, ctxt, host): '''Get the topic to use for a message. :param topic: the base topic :param ctxt: request context :param host: explicit host to send the message to. :returns: A topic string ''' if not host: host = cfg.CONF.host return rpc.queue_get_for(ctxt, topic, host)
def __init__(self): super(EngineClient, self).__init__( topic=rpc.queue_get_for(None, CONF.engine_topic, CONF.host), default_version=self.BASE_RPC_API_VERSION)