示例#1
0
文件: __init__.py 项目: pczerkas/aodh
    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,))
示例#2
0
文件: __init__.py 项目: sileht/aodh
    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)])
示例#4
0
    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)])
示例#5
0
文件: test_rpc.py 项目: chungg/aodh
 def __init__(self, transport):
     self.rpc = messaging.get_rpc_server(
         transport, "alarm_notifier", self)
     self.notified = []
示例#6
0
文件: test_rpc.py 项目: chungg/aodh
 def __init__(self, transport):
     self.rpc = messaging.get_rpc_server(
         transport, "alarm_partition_coordination", self)
     self.notified = []
示例#7
0
 def __init__(self, conf, transport):
     self.rpc = messaging.get_rpc_server(conf, transport, "alarm_notifier",
                                         self)
     self.notified = []
示例#8
0
文件: service.py 项目: chungg/aodh
 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)