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()
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()
def terminate(self): """ Override `terminate` method to properly exit JMXFetch. """ JMXFiles.write_exit_file() self.join()
def terminate(self): """ Override `terminate` method to properly exit JMXFetch. """ JMXFiles.write_exit_file() self.join()
def terminate(self): JMXFiles.write_exit_file() self.join()