Exemplo n.º 1
0
    def stop(self):
        """
        Override `stop` method to properly exit JMXFetch.
        """
        if self._proc is not None and self._proc.is_running():
            JMXFiles.write_exit_file()
            try:
                self._proc.wait(timeout=self._JMX_STOP_TIMEOUT)
            except psutil.TimeoutExpired:
                log.debug("JMXFetch process didn't stop after %ss, killing it", self._JMX_STOP_TIMEOUT)

        super(JMXFetchProcess, self).stop()
Exemplo n.º 2
0
    def stop(self):
        """
        Override `stop` method to properly exit JMXFetch.
        """
        if self._proc is not None and self._proc.is_running():
            JMXFiles.write_exit_file()
            try:
                self._proc.wait(timeout=self._JMX_STOP_TIMEOUT)
            except psutil.TimeoutExpired:
                log.debug("JMXFetch process didn't stop after %ss, killing it", self._JMX_STOP_TIMEOUT)

        super(JMXFetchProcess, self).stop()
Exemplo n.º 3
0
 def terminate(self):
     """
     Override `terminate` method to properly exit JMXFetch.
     """
     JMXFiles.write_exit_file()
     self.join()
Exemplo n.º 4
0
 def terminate(self):
     """
     Override `terminate` method to properly exit JMXFetch.
     """
     JMXFiles.write_exit_file()
     self.join()
Exemplo n.º 5
0
 def terminate(self):
     JMXFiles.write_exit_file()
     self.join()