Пример #1
0
 def start(self, wait=True):
     http_uri, bolt_uri = config.extract_http_and_bolt_uris(self.home)
     _invoke([path_join(self.home, "bin", "neo4j.bat"), "install-service"])
     _invoke([path_join(self.home, "bin", "neo4j.bat"), "start"])
     if wait:
         wait_for_server(http_uri.hostname, http_uri.port)
     return InstanceInfo(http_uri, bolt_uri, self.home)
Пример #2
0
 def start(self, timeout=0):
     http_uri, bolt_uri = config.extract_http_and_bolt_uris(self.home)
     _invoke([path_join(self.home, "bin", "neo4j"), "start"])
     if timeout:
         try:
             wait_for_server(http_uri.hostname,
                             http_uri.port,
                             timeout=timeout)
         except RuntimeError:
             with open(path_join(self.home, "logs", "neo4j.log"),
                       "r") as log_file:
                 print(log_file.read())
             raise
     return InstanceInfo(http_uri, bolt_uri, self.home)
Пример #3
0
 def start(self, wait=True):
     http_uri, bolt_uri = config.extract_http_and_bolt_uris(self.home)
     check_output([path_join(self.home, "bin", "neo4j"), "start"])
     if wait:
         wait_for_server(http_uri.hostname, http_uri.port)
     return InstanceInfo(http_uri, bolt_uri, self.home)