Пример #1
0
 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")
Пример #2
0
    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")
Пример #3
0
    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")
Пример #4
0
    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")
Пример #5
0
    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")
Пример #6
0
    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")
Пример #7
0
 def stop_rmfiles(self):
     logger.info("Stopping the rm'ers")
     if self.rmfiles is not None:
         self.rmfiles.stop()
Пример #8
0
 def stop_pgsubmitjsonnc(self):
     logger.info("Stopping the postgres submitter")
     if self.pgsubmitjsonnc is not None:
         self.pgsubmitjsonnc.stop()
Пример #9
0
 def stop_elksubmitjsons(self):
     logger.info("Stopping the elk submitters")
     for obj in self.elksubmitjsons:
         obj.stop()
Пример #10
0
 def stop_jsonupdates(self):
     logger.info("Stopping the elk submitters")
     for obj in [
             self.jsonupdates,
     ]:
         obj.stop()
Пример #11
0
 def stop_jsonfilereaders(self):
     logger.info("Stopping the json readers")
     for obj in self.jsonfilereaders:
         obj.stop()
Пример #12
0
 def stop_dircheckers(self):
     logger.info("Stopping the dircheckers")
     for obj in self.dircheckers:
         obj.stop()