public static void Start(this LocalCassandraNode node)
        {
            var localNodeName = LocalCassandraProcessManager.StartLocalCassandraProcess(node.DeployDirectory);

            if (localNodeName != node.LocalNodeName)
            {
                throw new InvalidOperationException($"actual localNodeName ({localNodeName}) != LocalNodeName ({node.LocalNodeName})");
            }
        }
예제 #2
0
        public static void Start(this LocalCassandraNode node, TimeSpan?timeout = null)
        {
            var localNodeName = LocalCassandraProcessManager.StartLocalCassandraProcess(node.DeployDirectory);

            if (localNodeName != node.LocalNodeName)
            {
                throw new InvalidOperationException($"actual localNodeName ({localNodeName}) != LocalNodeName ({node.LocalNodeName})");
            }
            LocalCassandraProcessManager.WaitForLocalCassandraPortsToOpen(node.RpcPort, node.CqlPort, timeout);
        }
예제 #3
0
 public static void Stop(this LocalCassandraNode node, TimeSpan?timeout = null)
 {
     LocalCassandraProcessManager.StopLocalCassandraProcess(node.LocalNodeName, timeout);
 }
 public static void Stop(this LocalCassandraNode node)
 {
     LocalCassandraProcessManager.StopLocalCassandraProcess(node.LocalNodeName);
 }