public void Start() { shellRunner.Start(); var timeSpan = 60.Seconds(); if (!healthChecker.WaitStarted(timeSpan)) { throw new TimeoutException($"Kafka has not warmed up in {timeSpan.TotalSeconds} seconds.."); } }
/// <summary> /// <para>Starts instance.</para> /// </summary> public void Start() { if (IsRunning) { return; } runner.Start(); if (!healthChecker.WaitStarted(20.Seconds())) { throw new Exception($"instance '{Id}' has not warmed up in 20 seconds.."); } }
public void Start_Stop_should_work() { var runner = new ShellRunner( new ShellRunnerSettings("ping") { Arguments = "google.com -n 100" }, new SynchronousConsoleLog()); runner.Start(); Thread.Sleep(5.Seconds()); runner.Stop(); Thread.Sleep(5.Seconds()); }
public virtual void Start() { Configure(); shellRunner.Start(); }