ternya/ternya.py
def init_glance_consumer(self, mq):
        """
        Init openstack glance mq

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

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

        for i in range(self.config.glance_mq_consumer_count):
            mq.create_consumer(self.config.glance_mq_exchange,
                               self.config.glance_mq_queue,
                               ProcessFactory.process(Openstack.Glance))

        log.debug("enable listening openstack glance notification.")
def init_glance_consumer(self, mq):
        if not self.enable_component_notification(Openstack.Glance):
            log.debug("disable listening glance notification")
            return

        for i in range(self.config.glance_mq_consumer_count):
            mq.create_consumer(self.config.glance_mq_exchange,
                               self.config.glance_mq_queue,
                               ProcessFactory.process(Openstack.Glance))

        log.debug("enable listening openstack glance notification.")
def init_glance_consumer ( self , mq ) : if not self . enable_component_notification ( Openstack . Glance ) : log . debug ( "disable listening glance notification" ) return for i in range ( self . config . glance_mq_consumer_count ) : mq . create_consumer ( self . config . glance_mq_exchange , self . config . glance_mq_queue , ProcessFactory . process ( Openstack . Glance ) ) log . debug ( "enable listening openstack glance notification." )
Init openstack glance mq

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

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