コード例 #1
0
    def stop(self, wait_on_join=True, join_timeout=5):
        #stop the main server
        ScalyrMonitor.stop(self,
                           wait_on_join=wait_on_join,
                           join_timeout=join_timeout)

        self.__container_checker.stop(wait_on_join, join_timeout)
コード例 #2
0
 def stop(self, wait_on_join=True, join_timeout=5):
     # The order here is important.  Since our servers use self._run_state to know when to stop, we need to
     # invoke the inherited method first since that is what actually stops self._run_state.  Then we can join
     # on the threads.
     ScalyrMonitor.stop(self, wait_on_join=wait_on_join, join_timeout=join_timeout)
     if self.__extra_thread is not None:
         self.__extra_thread.stop(wait_on_join=wait_on_join, join_timeout=join_timeout)
コード例 #3
0
    def stop(self, wait_on_join=True, join_timeout=5):
        # stop the monitor
        ScalyrMonitor.stop(self, wait_on_join=wait_on_join, join_timeout=join_timeout)

        # stop any event monitoring
        self.__api.stop()

        # update checkpoints
        self.__update_checkpoints()
コード例 #4
0
    def stop(self, wait_on_join=True, join_timeout=5):
        #stop the monitor
        ScalyrMonitor.stop( self, wait_on_join=wait_on_join, join_timeout=join_timeout )

        # stop any event monitoring
        self.__api.stop()

        #update checkpoints
        self.__update_checkpoints()
コード例 #5
0
 def stop(self, wait_on_join=True, join_timeout=5):
     # The order here is important.  Since our servers use self._run_state to know when to stop, we need to
     # invoke the inherited method first since that is what actually stops self._run_state.  Then we can join
     # on the threads.
     ScalyrMonitor.stop(self,
                        wait_on_join=wait_on_join,
                        join_timeout=join_timeout)
     if self.__extra_thread is not None:
         self.__extra_thread.stop(wait_on_join=wait_on_join,
                                  join_timeout=join_timeout)
コード例 #6
0
    def stop(self, wait_on_join=True, join_timeout=5):

        # output some info so we can tell from the logs when the monitor is being shut down
        self._logger.info("Garbage Monitor shutting down")

        # restore the original debug flags
        if self._monitor_all_unreachable and self._old_debug_flags is not None:
            gc.set_debug(self._old_debug_flags)

        # stop the main server
        ScalyrMonitor.stop(self, wait_on_join=wait_on_join, join_timeout=join_timeout)
コード例 #7
0
    def stop(self, wait_on_join=True, join_timeout=5):

        # output some info so we can tell from the logs when the monitor is being shut down
        self._logger.info( "Garbage Monitor shutting down" )

        #restore the original debug flags
        if self._monitor_all_unreachable and self._old_debug_flags is not None:
            gc.set_debug( self._old_debug_flags )

        #stop the main server
        ScalyrMonitor.stop( self, wait_on_join=wait_on_join, join_timeout=join_timeout )
コード例 #8
0
    def stop(self, wait_on_join=True, join_timeout=5):
        #stop the main server
        ScalyrMonitor.stop( self, wait_on_join=wait_on_join, join_timeout=join_timeout )

        #stop the DockerLoggers
        for logger in self.docker_loggers:
            if self.__log_watcher:
                self.__log_watcher.remove_log_path( self, logger.log_path )
            logger.stop( wait_on_join, join_timeout )
            self._logger.info( "Stopping %s - %s" % (logger.name, logger.stream) )

        self.__update_checkpoints()
コード例 #9
0
    def stop(self, wait_on_join=True, join_timeout=5):
        #stop the main server
        ScalyrMonitor.stop(self,
                           wait_on_join=wait_on_join,
                           join_timeout=join_timeout)

        #stop the DockerLoggers
        for logger in self.docker_loggers:
            if self.__log_watcher:
                self.__log_watcher.remove_log_path(self, logger.log_path)
            logger.stop(wait_on_join, join_timeout)
            self._logger.info("Stopping %s - %s" %
                              (logger.name, logger.stream))

        self.__update_checkpoints()
コード例 #10
0
 def stop(self, wait_on_join=True, join_timeout=5):
     ScalyrMonitor.stop(self,
                        wait_on_join=wait_on_join,
                        join_timeout=join_timeout)
     self.log_manager.close()
     self._logger.info("Stop was called on the journald monitor")
コード例 #11
0
 def stop(self, wait_on_join=True, join_timeout=5):
     # stop the main server
     ScalyrMonitor.stop(self, wait_on_join=wait_on_join, join_timeout=join_timeout)