ternya/ternya.py
def init_keystone_consumer(self, mq):
        """
        Init openstack swift mq

        1. Check if enable listening keystone notification
        2. Create consumer

        :param mq: class ternya.mq.MQ
        """
        if not self.enable_component_notification(Openstack.Keystone):
            log.debug("disable listening keystone notification")
            return

        for i in range(self.config.keystone_mq_consumer_count):
            mq.create_consumer(self.config.keystone_mq_exchange,
                               self.config.keystone_mq_queue,
                               ProcessFactory.process(Openstack.Keystone))

        log.debug("enable listening openstack keystone notification.")
def init_keystone_consumer(self, mq):
        """
        Init openstack swift mq

        1. Check if enable listening keystone notification
        2. Create consumer

        :param mq: class ternya.mq.MQ
        """
        if not self.enable_component_notification(Openstack.Keystone):
            log.debug("disable listening keystone notification")
            return

        for i in range(self.config.keystone_mq_consumer_count):
            mq.create_consumer(self.config.keystone_mq_exchange,
                               self.config.keystone_mq_queue,
                               ProcessFactory.process(Openstack.Keystone))

        log.debug("enable listening openstack keystone notification.")
def init_keystone_consumer ( self , mq ) : if not self . enable_component_notification ( Openstack . Keystone ) : log . debug ( "disable listening keystone notification" ) return for i in range ( self . config . keystone_mq_consumer_count ) : mq . create_consumer ( self . config . keystone_mq_exchange , self . config . keystone_mq_queue , ProcessFactory . process ( Openstack . Keystone ) ) log . debug ( "enable listening openstack keystone notification." )
Init openstack swift mq

        1. Check if enable listening keystone notification
        2. Create consumer

        :param mq: class ternya.mq.MQ
Init openstack swift mq