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)
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)
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)