示例#1
0
def create_rpc_client_instance(conf):
    transport = messaging.get_rpc_transport(conf)
    target = oslo_messaging.Target(topic=conf.rpc_topic_collector)
    client = vitrage_rpc.get_client(transport, target)
    return client
示例#2
0
 def __init__(self):
     transport = messaging.get_rpc_transport()
     target = oslo_messaging.Target(topic=CONF.rpc_topic)
     self.client = vitrage_rpc.get_client(transport, target)
     self.check_backend = CONF.api.check_backend
示例#3
0
 def __init__(self, conf):
     transport = messaging.get_rpc_transport(conf)
     target = oslo_messaging.Target(topic=conf.rpc_topic)
     self.client = vitrage_rpc.get_client(transport, target)
示例#4
0
文件: hooks.py 项目: Idandos/vitrage
 def __init__(self, conf):
     transport = messaging.get_transport(conf)
     target = oslo_messaging.Target(topic=conf.rpc_topic)
     self.client = vitrage_rpc.get_client(transport, target)