Beispiel #1
0
	def wait_for_msg(s):
		try:
			msg = q.dequeue_d(s.queue_name)
			log.info('MessageMonitor delivering msg: ' + str(msg))
			return msg
		except KeyboardInterrupt:
			log.info('shutting down')
			sys.exit()
Beispiel #2
0
	def get_response(s):
		log.info('waiting for response from route')
		rsp = q.dequeue_d('core:outgoing')
		log.info('response received from route: ' + str(rsp))
		return rsp
Beispiel #3
0
	def get_request(s):
		log.info('waiting for message on queue incoming')
		msg = q.dequeue_d('incoming')
		log.info('received msg ' + str(msg))
		return msg