def __init__(self, cb_server_url, cb_ext_api, username, password, extensions, output_dir): self.output_dir = output_dir self.extensions = extensions MessageSubscriberAndLiveResponseActor.__init__( self, cb_server_url, cb_ext_api, username, password, "ingress.event.filemod")
def __init__(self, cb_server_url, cb_ext_api, username, password, extensions, output_dir): self.output_dir = output_dir self.extensions = extensions MessageSubscriberAndLiveResponseActor.__init__(self, cb_server_url, cb_ext_api, username, password, "ingress.event.filemod")
def __init__(self, cb_server_url, cb_ext_api, username, password, regmod_regexes, verbose): self.regmod_regexes = regmod_regexes self.verbose = verbose MessageSubscriberAndLiveResponseActor.__init__( self, cb_server_url, cb_ext_api, username, password, "ingress.event.regmod" ) # Threading so that message queue arrives do not block waiting for live response self.queue = Queue.Queue() self.go = True self.worker_thread = Thread(target=self._worker_thread_loop) self.worker_thread.start()
def __init__(self, cb_server_url, cb_ext_api, username, password, regmod_regexes, verbose): self.regmod_regexes = regmod_regexes self.verbose = verbose MessageSubscriberAndLiveResponseActor.__init__(self, cb_server_url, cb_ext_api, username, password, "ingress.event.regmod") # Threading so that message queue arrives do not block waiting for live response self.queue = Queue.Queue() self.go = True self.worker_thread = Thread(target=self._worker_thread_loop) self.worker_thread.start()
def on_stop(self): self.go = False self.worker_thread.join(timeout=2) MessageSubscriberAndLiveResponseActor.on_stop(self)
def on_stop(self): self.go = False self.worker_thread.join(timeout=2) MessageSubscriberAndLiveResponseActor.on_stop(self)