def __init__(self, conf): super(AlarmNotifierService, self).__init__() transport = messaging.get_transport(conf) self.rpc_server = messaging.get_rpc_server( conf, transport, conf.notifier_rpc_topic, self) self.notifiers = extension.ExtensionManager( self.NOTIFIER_EXTENSIONS_NAMESPACE, invoke_on_load=True, invoke_args=(conf,))
def __init__(self, conf): super(AlarmNotifierService, self).__init__() transport = messaging.get_transport(conf) self.rpc_server = messaging.get_rpc_server(conf, transport, conf.notifier_rpc_topic, self) self.notifiers = extension.ExtensionManager( self.NOTIFIER_EXTENSIONS_NAMESPACE, invoke_on_load=True, invoke_args=(conf, ))
def __init__(self, conf): super(AlarmNotifierService, self).__init__() transport = messaging.get_transport(conf) self.notifiers = extension.ExtensionManager( self.NOTIFIER_EXTENSIONS_NAMESPACE, invoke_on_load=True, invoke_args=(conf,)) if conf.ipc_protocol == 'rpc': self.ipc = 'rpc' self.rpc_server = messaging.get_rpc_server( conf, transport, conf.notifier_rpc_topic, self) else: self.ipc = 'queue' target = oslo_messaging.Target(topic=conf.notifier_topic) self.listener = messaging.get_notification_listener( transport, [target], [AlarmEndpoint(self.notifiers)])
def __init__(self, conf): super(AlarmNotifierService, self).__init__() transport = messaging.get_transport(conf) self.notifiers = extension.ExtensionManager( self.NOTIFIER_EXTENSIONS_NAMESPACE, invoke_on_load=True, invoke_args=(conf, )) if conf.ipc_protocol == 'rpc': self.ipc = 'rpc' self.rpc_server = messaging.get_rpc_server(conf, transport, conf.notifier_rpc_topic, self) else: self.ipc = 'queue' target = oslo_messaging.Target(topic=conf.notifier_topic) self.listener = messaging.get_notification_listener( transport, [target], [AlarmEndpoint(self.notifiers)])
def __init__(self, transport): self.rpc = messaging.get_rpc_server( transport, "alarm_notifier", self) self.notified = []
def __init__(self, transport): self.rpc = messaging.get_rpc_server( transport, "alarm_partition_coordination", self) self.notified = []
def __init__(self, conf, transport): self.rpc = messaging.get_rpc_server(conf, transport, "alarm_notifier", self) self.notified = []
def __init__(self): super(AlarmNotifierService, self).__init__() transport = messaging.get_transport() self.rpc_server = messaging.get_rpc_server( transport, cfg.CONF.alarm.notifier_rpc_topic, self)