def start_rmfiles(self): if self.rmfiles is not None: logger.info("Starting the file removers") self.rmfiles.start() t = Thread(target=self.rmfiles_poll) self.rmfiles_poll_thread = t t.start() logger.info("Starting the file removers..completed")
def start_pgsubmitjsonnc(self): if self.pgsubmitjsonnc is not None: logger.info("Starting the postgres submitters") self.pgsubmitjsonnc.start() t = Thread(target=self.pgsubmitjsonnc_poll) self.pgsubmitjsonnc_poll_thread = t t.start() logger.info("Starting the json submitters..completed")
def start_elksubmitjsons(self): logger.info("Starting the elk submitters") for obj in self.elksubmitjsons: obj.start() t = Thread(target=self.elksubmitjson_poll) self.elksubmit_poll_thread = t t.start() logger.info("Starting the json submitters..completed")
def start_jsonfilereaders(self): self.keep_running = True logger.info("Starting the file readers") for obj in self.jsonfilereaders: obj.start() t = Thread(target=self.jsonfilereaders_poll) self.jsonreader_poll_thread = t t.start() logger.info("Starting the file readers..completed")
def start_dircheckers(self): self.keep_running = True logger.info("Starting the directory checkers") for obj in self.dircheckers: obj.start() t = Thread(target=self.dirchecker_poll) self.dirchecker_poll_thread = t t.start() logger.info("Starting the directory checkers..completed")
def start_jsonupdates(self): if self.jsonupdates is not None: self.keep_running = True logger.info("Starting the jsonupdates readers") for obj in [ self.jsonupdates, ]: obj.start() t = Thread(target=self.jsonupdate_poll) self.jsonupdate_poll_thread = t t.start() logger.info("Starting the jsonupdates..completed")
def stop_rmfiles(self): logger.info("Stopping the rm'ers") if self.rmfiles is not None: self.rmfiles.stop()
def stop_pgsubmitjsonnc(self): logger.info("Stopping the postgres submitter") if self.pgsubmitjsonnc is not None: self.pgsubmitjsonnc.stop()
def stop_elksubmitjsons(self): logger.info("Stopping the elk submitters") for obj in self.elksubmitjsons: obj.stop()
def stop_jsonupdates(self): logger.info("Stopping the elk submitters") for obj in [ self.jsonupdates, ]: obj.stop()
def stop_jsonfilereaders(self): logger.info("Stopping the json readers") for obj in self.jsonfilereaders: obj.stop()
def stop_dircheckers(self): logger.info("Stopping the dircheckers") for obj in self.dircheckers: obj.stop()