示例#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)
示例#2
0
    def __init__(self, queue, user, password="******"):
	StompClientFactory.__init__(self, user=user, password=password)
	self.queue = queue
示例#3
0
 def __init__(self, queue, user, password="******"):
     log.debug("initializing XenBEE protocol factory...")
     StompClientFactory.__init__(self, user=user, password=password)
     self.queue = queue