Example #1
0
    def clientConnectionFailed(self, connector, reason):
	log.error("connection to STOMP server failed!: %s" % (str(reason.value)))
	if 'twisted.internet.error.ConnectionRefusedError' in reason.parents:
            log.info("shutting down...")
            reactor.exitcode = 1
            reactor.stop()
	else:
	    StompClientFactory.clientConnectionFailed(self, connector, reason)
Example #2
0
    def __init__(self, queue, user, password="******"):
	StompClientFactory.__init__(self, user=user, password=password)
	self.queue = queue
Example #3
0
 def __init__(self, queue, user, password="******"):
     log.debug("initializing XenBEE protocol factory...")
     StompClientFactory.__init__(self, user=user, password=password)
     self.queue = queue