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})"); } }
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); }
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); }