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")
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
    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()
Ejemplo n.º 5
0
 def on_stop(self):
     self.go = False
     self.worker_thread.join(timeout=2)
     MessageSubscriberAndLiveResponseActor.on_stop(self)
Ejemplo n.º 6
0
 def on_stop(self):
     self.go = False
     self.worker_thread.join(timeout=2)
     MessageSubscriberAndLiveResponseActor.on_stop(self)