Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
 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)