Example #1
0
 def _ServerIsRunning(self):
     """
 Check if JediHTTP is alive. That doesn't necessarily mean it's ready to
 serve requests; that's checked by ServerIsHealthy.
 """
     with self._server_lock:
         return (bool(self._jedihttp_port)
                 and ProcessIsRunning(self._jedihttp_phandle))
Example #2
0
 def ServerIsRunning(self):
     """
 Check if racerd is alive. That doesn't necessarily mean it's ready to serve
 requests; that's checked by ServerIsReady.
 """
     with self._server_state_lock:
         return (bool(self._racerd_host)
                 and ProcessIsRunning(self._racerd_phandle))
Example #3
0
 def _ServerIsRunning(self):
     '''
 Check if the server is alive. That doesn't necessarily mean it's ready to
 serve requests; that's checked by ServerIsHealthy.
 '''
     with self._server_lock:
         status = (bool(self._http_port)
                   and ProcessIsRunning(self._http_phandle))
         self._logger.debug('Healthy Status ' + str(status))
         return status
Example #4
0
 def __init__(self,
              name,
              handle,
              executable,
              address=None,
              port=None,
              logfiles=[],
              extras=[]):
     self.name = name
     self.is_running = ProcessIsRunning(handle)
     self.executable = executable
     self.address = address
     self.port = port
     self.pid = handle.pid if self.is_running else None
     # Remove undefined logfiles from the list.
     self.logfiles = [logfile for logfile in logfiles if logfile]
     self.extras = extras