Esempio n. 1
0
 def __init__(self):
     super(SubprocessAPI, self).__init__()
     self.target = messaging.Target(topic=CONF.host,
                                    version=self.RPC_API_VERSION)
     self.client = rpc.get_client(self.target,
                                  version_cap=self.RPC_API_VERSION)
Esempio n. 2
0
 def get_client(self, topic):
     target = messaging.Target(topic=topic, version=self.RPC_API_VERSION)
     return rpc.get_client(target, version_cap=self.RPC_API_VERSION)
Esempio n. 3
0
 def __init__(self):
     super(AlertAPI, self).__init__()
     target = messaging.Target(topic=CONF.delfin_alert_topic,
                               version=self.RPC_API_VERSION)
     self.client = rpc.get_client(target, version_cap=self.RPC_API_VERSION)