Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 7
0
 def stop_rmfiles(self):
     logger.info("Stopping the rm'ers")
     if self.rmfiles is not None:
         self.rmfiles.stop()
Exemplo n.º 8
0
 def stop_pgsubmitjsonnc(self):
     logger.info("Stopping the postgres submitter")
     if self.pgsubmitjsonnc is not None:
         self.pgsubmitjsonnc.stop()
Exemplo n.º 9
0
 def stop_elksubmitjsons(self):
     logger.info("Stopping the elk submitters")
     for obj in self.elksubmitjsons:
         obj.stop()
Exemplo n.º 10
0
 def stop_jsonupdates(self):
     logger.info("Stopping the elk submitters")
     for obj in [
             self.jsonupdates,
     ]:
         obj.stop()
Exemplo n.º 11
0
 def stop_jsonfilereaders(self):
     logger.info("Stopping the json readers")
     for obj in self.jsonfilereaders:
         obj.stop()
Exemplo n.º 12
0
 def stop_dircheckers(self):
     logger.info("Stopping the dircheckers")
     for obj in self.dircheckers:
         obj.stop()