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