MCPcopy Create free account
hub / github.com/apache/impala / start

Method start

tests/common/impala_cluster.py:524–533  ·  view source on GitHub ↗

Start the process with the same arguments after it was stopped.

(self)

Source from the content-addressed store, hash-verified

522 check_call(["docker", "container", "stop", self.container_id])
523
524 def start(self):
525 """Start the process with the same arguments after it was stopped."""
526 if self.container_id is None:
527 binary = os.path.basename(self.cmd[0])
528 restart_args = self.cmd[1:]
529 LOG.info("Starting {0} with arguments {1}".format(binary, restart_args))
530 run_daemon(binary, restart_args)
531 else:
532 LOG.info("Starting container: {0}".format(self.container_id))
533 check_call(["docker", "container", "start", self.container_id])
534
535 def restart(self, signal=SIGKILL):
536 """Kills and restarts the process"""

Callers 2

restartMethod · 0.95
startFunction · 0.95

Calls 2

run_daemonFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected