Exemplo n.º 1
0
        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..");
            }
        }
Exemplo n.º 2
0
        /// <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..");
            }
        }
Exemplo n.º 3
0
        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());
        }
Exemplo n.º 4
0
 public virtual void Start()
 {
     Configure();
     shellRunner.Start();
 }