Ejemplo n.º 1
0
 public static void WaitForSchemaAgreement(CcmClusterInfo clusterInfo)
 {
     WaitForSchemaAgreement(clusterInfo.Cluster);
 }
Ejemplo n.º 2
0
        //public static void CcmBootstrapNode(CcmCluster ccmCluster, int node, string dc = null)
        //{
        //    ProcessOutput output = null;
        //    if (dc == null)
        //    {
        //        output = ccmCluster.CcmBridge.ExecuteCcm(string.Format("add node{0} -i {1}{2} -j {3} -b", node, Options.Default.IP_PREFIX, node, 7000 + 100 * node));
        //    }
        //    else
        //    {
        //        output = ccmCluster.CcmBridge.ExecuteCcm(string.Format("add node{0} -i {1}{2} -j {3} -b -d {4}", node, Options.Default.IP_PREFIX, node, 7000 + 100 * node, dc));
        //    }
        //    if (output.ExitCode != 0)
        //    {
        //        throw new TestInfrastructureException("Local ccm could not add node: " + output.ToString());
        //    }
        //}

        public static void CcmDecommissionNode(CcmClusterInfo info, int node)
        {
            ExecuteLocalCcm(string.Format("node{0} decommission", node), info.ConfigDir);
        }