ternya/ternya.py
def init_heat_consumer(self, mq):
        """
        Init openstack heat mq

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

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

        for i in range(self.config.heat_mq_consumer_count):
            mq.create_consumer(self.config.heat_mq_exchange,
                               self.config.heat_mq_queue,
                               ProcessFactory.process(Openstack.Heat))

        log.debug("enable listening openstack heat notification.")
def init_heat_consumer(self, mq):
        if not self.enable_component_notification(Openstack.Heat):
            log.debug("disable listening heat notification")
            return

        for i in range(self.config.heat_mq_consumer_count):
            mq.create_consumer(self.config.heat_mq_exchange,
                               self.config.heat_mq_queue,
                               ProcessFactory.process(Openstack.Heat))

        log.debug("enable listening openstack heat notification.")
def init_heat_consumer ( self , mq ) : if not self . enable_component_notification ( Openstack . Heat ) : log . debug ( "disable listening heat notification" ) return for i in range ( self . config . heat_mq_consumer_count ) : mq . create_consumer ( self . config . heat_mq_exchange , self . config . heat_mq_queue , ProcessFactory . process ( Openstack . Heat ) ) log . debug ( "enable listening openstack heat notification." )
Init openstack heat mq

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

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