public static CCMBridge Create(string name) { CCMBridge bridge = new CCMBridge(); bridge.ExecuteCCM(string.Format("Create {0} -b -i {1} {2}", name, Options.Default.IP_PREFIX, Options.Default.CASSANDRA_VERSION)); return(bridge); }
public static CCMBridge Create(string name, int nbNodesDC1, int nbNodesDC2) { CCMBridge bridge = new CCMBridge(); bridge.ExecuteCCM(string.Format("Create {0} -n {1}:{2} -s -i {3} -b {4}", name, nbNodesDC1, nbNodesDC2, IP_PREFIX, CASSANDRA_VERSION)); return(bridge); }
public static CCMBridge Create(string name, int nbNodesDC1, int nbNodesDC2, bool useAlreadyExisting = false) { #if !MYTEST if (!useAlreadyExisting && (nbNodesDC1 + nbNodesDC2 > 4)) { throw new InvalidOperationException(); } #endif CCMBridge bridge = new CCMBridge(); bridge.ExecuteCCM(string.Format("Create {0} -n {1}:{2} -s -i {3} -b {4}", name, nbNodesDC1, nbNodesDC2, Options.Default.IP_PREFIX, Options.Default.CASSANDRA_VERSION), useAlreadyExisting); return(bridge); }
public static CCMBridge Create(string name, int nbNodesDC1, int nbNodesDC2, bool useAlreadyExisting =false) { #if !MYTEST if (!useAlreadyExisting && (nbNodesDC1 + nbNodesDC2 > 4)) throw new InvalidOperationException(); #endif CCMBridge bridge = new CCMBridge(); bridge.ExecuteCCM(string.Format("Create {0} -n {1}:{2} -s -i {3} -b {4}", name, nbNodesDC1, nbNodesDC2, Options.Default.IP_PREFIX, Options.Default.CASSANDRA_VERSION), useAlreadyExisting); return bridge; }
public static CCMBridge Create(string name) { CCMBridge bridge = new CCMBridge(); bridge.ExecuteCCM(string.Format("Create {0} -b -i {1} {2}", name, Options.Default.IP_PREFIX, Options.Default.CASSANDRA_VERSION)); return bridge; }
public static CCMBridge Create(string name, int nbNodesDC1, int nbNodesDC2) { CCMBridge bridge = new CCMBridge(); bridge.ExecuteCCM(string.Format("Create {0} -n {1}:{2} -s -i {3} -b {4}", name, nbNodesDC1, nbNodesDC2, IP_PREFIX, CASSANDRA_VERSION)); return bridge; }